[empathy] Turn libempathy to a public lib



commit 81f91f746010d5b12697818b4f1f9f792ef27320
Author: Guillaume Desmottes <guillaume desmottes collabora co uk>
Date:   Thu Jul 12 11:24:44 2012 +0200

    Turn libempathy to a public lib
    
    We use "-release" versioning as it's not meant to be used out of Empathy's
    tree.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=679786

 libempathy/Makefile.am |   35 +++++++++++++++++++++--------------
 1 files changed, 21 insertions(+), 14 deletions(-)
---
diff --git a/libempathy/Makefile.am b/libempathy/Makefile.am
index ab7de68..cfa5255 100644
--- a/libempathy/Makefile.am
+++ b/libempathy/Makefile.am
@@ -23,8 +23,6 @@ BUILT_SOURCES = 					\
 	empathy-enum-types.h				\
 	empathy-enum-types.c
 
-noinst_LTLIBRARIES = libempathy.la
-
 libempathy_headers =				\
 	action-chain-internal.h			\
 	empathy-account-settings.h		\
@@ -99,10 +97,31 @@ goa_sources = \
 	empathy-goa-auth-handler.h \
 	$(NULL)
 
+pkglib_LTLIBRARIES = libempathy.la
+
+# libempathy's API is not stable and will never be, so use -release to make the
+# SONAME of the plugin library change with every Empathy release.
+libempathy_la_LDFLAGS = \
+   -no-undefined \
+   -release $(VERSION) \
+   $(NULL)
+
 libempathy_la_SOURCES = \
 	$(libempathy_handwritten_source) \
 	cheese-camera-device-monitor.c cheese-camera-device-monitor.h
 
+libempathy_la_LIBADD =		\
+	$(top_builddir)/extensions/libemp-extensions.la \
+	$(GCR_LIBS) \
+	$(EMPATHY_LIBS) \
+	$(GEOCLUE_LIBS) \
+	$(GEOCODE_LIBS) \
+	$(NETWORK_MANAGER_LIBS) \
+	$(CONNMAN_LIBS) \
+	$(UDEV_LIBS) \
+	$(GOA_LIBS) \
+	$(LIBM)
+
 dtddir = $(datadir)/empathy
 dtd_DATA = 					\
 	empathy-status-presets.dtd		\
@@ -132,18 +151,6 @@ endif
 nodist_libempathy_la_SOURCES =\
 	$(BUILT_SOURCES)
 
-libempathy_la_LIBADD =		\
-	$(top_builddir)/extensions/libemp-extensions.la \
-	$(GCR_LIBS) \
-	$(EMPATHY_LIBS) \
-	$(GEOCLUE_LIBS) \
-	$(GEOCODE_LIBS) \
-	$(NETWORK_MANAGER_LIBS) \
-	$(CONNMAN_LIBS) \
-	$(UDEV_LIBS) \
-	$(GOA_LIBS) \
-	$(LIBM)
-
 check_c_sources = \
     $(libempathy_handwritten_source) \
     $(goa_sources) \



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]