From 81f91f746010d5b12697818b4f1f9f792ef27320 Mon Sep 17 00:00:00 2001 From: Guillaume Desmottes Date: Thu, 12 Jul 2012 11:24:44 +0200 Subject: 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 file changed, 21 insertions(+), 14 deletions(-) (limited to 'libempathy') diff --git a/libempathy/Makefile.am b/libempathy/Makefile.am index ab7de6825..cfa525508 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) \ -- cgit v1.2.3