[tracker] Append API version suffix to client libraries



commit 12b5bdbee6ad49c286730511c9fe6c9b6c8beae7
Author: Jürg Billeter <j bitron ch>
Date:   Tue Mar 24 16:52:50 2009 +0100

    Append API version suffix to client libraries
    
    Install libtrackerclient-0.7.so and libtracker-gtk-0.7.so.
---
 data/libtracker-gtk.pc.in           |    2 +-
 data/tracker.pc.in                  |    2 +-
 src/libtracker-gtk/Makefile.am      |   10 +++++-----
 src/libtracker/Makefile.am          |    8 ++++----
 src/tracker-applet/Makefile.am      |    2 +-
 src/tracker-preferences/Makefile.am |    2 +-
 src/tracker-search-tool/Makefile.am |    4 ++--
 src/tracker-utils/Makefile.am       |    2 +-
 8 files changed, 16 insertions(+), 16 deletions(-)

diff --git a/data/libtracker-gtk.pc.in b/data/libtracker-gtk.pc.in
index 53d71aa..4f95427 100644
--- a/data/libtracker-gtk.pc.in
+++ b/data/libtracker-gtk.pc.in
@@ -8,5 +8,5 @@ Description: Handy GTK+ widgets for apps that use tracker
 Version: @VERSION@
 Requires.private: cairo
 Requires: tracker gtk+-2.0 glib-2.0
-Libs: -L${libdir} -ltracker-gtk
+Libs: -L${libdir} -ltracker-gtk- TRACKER_API_VERSION@
 Cflags: -I${includedir}/libtracker-gtk
diff --git a/data/tracker.pc.in b/data/tracker.pc.in
index 5fc07f4..e63db40 100644
--- a/data/tracker.pc.in
+++ b/data/tracker.pc.in
@@ -7,6 +7,6 @@ Name: tracker
 Description: Tracker : Indexer, metadata harvester and metadata database
 Version: @VERSION@
 Requires: glib-2.0 dbus-1 dbus-glib-1
-Libs: -L${libdir} -ltrackerclient
+Libs: -L${libdir} -ltrackerclient- TRACKER_API_VERSION@
 Cflags: -DDBUS_API_SUBJECT_TO_CHANGE -I${includedir}
 
diff --git a/src/libtracker-gtk/Makefile.am b/src/libtracker-gtk/Makefile.am
index 050eca9..6c4af23 100644
--- a/src/libtracker-gtk/Makefile.am
+++ b/src/libtracker-gtk/Makefile.am
@@ -8,7 +8,7 @@ INCLUDES = 							\
 
 libtracker_gtkincdir = $(includedir)/libtracker-gtk
 
-lib_LTLIBRARIES = libtracker-gtk.la
+lib_LTLIBRARIES = libtracker-gtk- TRACKER_API_VERSION@.la
 
 libtracker_gtkinc_HEADERS =					\
 	tracker-gtk.h						\
@@ -18,17 +18,17 @@ libtracker_gtkinc_HEADERS =					\
 	tracker-tag-bar.h					\
 	tracker-keyword-store.h
 
-libtracker_gtk_la_SOURCES =					\
+libtracker_gtk_ TRACKER_API_VERSION@_la_SOURCES =					\
 	tracker-utils.c						\
 	tracker-ui.c 						\
 	tracker-metadata-tile.c					\
 	tracker-tag-bar.c					\
 	tracker-keyword-store.c
 
-libtracker_gtk_la_LIBADD = 					\
-	$(top_builddir)/src/libtracker/libtrackerclient.la 	\
+libtracker_gtk_ TRACKER_API_VERSION@_la_LIBADD = 					\
+	$(top_builddir)/src/libtracker/libtrackerclient- TRACKER_API_VERSION@.la 	\
 	$(LIBTRACKERGTK_LIBS) 					\
 	$(GCOV_LIBS)
 
-libtracker_gtk_la_LDFLAGS = 					\
+libtracker_gtk_ TRACKER_API_VERSION@_la_LDFLAGS = 					\
 	-version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE)
diff --git a/src/libtracker/Makefile.am b/src/libtracker/Makefile.am
index 9843fe8..a913855 100644
--- a/src/libtracker/Makefile.am
+++ b/src/libtracker/Makefile.am
@@ -9,14 +9,14 @@ INCLUDES = 					\
 	$(GCOV_CFLAGS)				\
 	$(DBUS_CFLAGS)			
 
-lib_LTLIBRARIES = libtrackerclient.la
+lib_LTLIBRARIES = libtrackerclient- TRACKER_API_VERSION@.la
 
-libtrackerclient_la_SOURCES = tracker.c
+libtrackerclient_ TRACKER_API_VERSION@_la_SOURCES = tracker.c
 
-libtrackerclient_la_LDFLAGS = 			\
+libtrackerclient_ TRACKER_API_VERSION@_la_LDFLAGS = 			\
 	-version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE)
 
-libtrackerclient_la_LIBADD = 			\
+libtrackerclient_ TRACKER_API_VERSION@_la_LIBADD = 			\
 	$(GLIB2_LIBS) 				\
 	$(DBUS_LIBS)				\
 	$(GCOV_LIBS)				\
diff --git a/src/tracker-applet/Makefile.am b/src/tracker-applet/Makefile.am
index f03d582..0766295 100644
--- a/src/tracker-applet/Makefile.am
+++ b/src/tracker-applet/Makefile.am
@@ -14,7 +14,7 @@ INCLUDES =								\
 bin_PROGRAMS = tracker-applet
 
 tracker_applet_LDADD = 							\
-	$(top_builddir)/src/libtracker/libtrackerclient.la 		\
+	$(top_builddir)/src/libtracker/libtrackerclient- TRACKER_API_VERSION@.la \
 	$(top_builddir)/src/libtracker-common/libtracker-common.la 	\
 	$(TRACKER_APPLET_LIBS)						\
 	$(LIBGLADE_LIBS)						\
diff --git a/src/tracker-preferences/Makefile.am b/src/tracker-preferences/Makefile.am
index 10eef68..d2e5a38 100644
--- a/src/tracker-preferences/Makefile.am
+++ b/src/tracker-preferences/Makefile.am
@@ -33,7 +33,7 @@ tracker_preferences_SOURCES = 						\
 	tracker-preferences-utils.h
 
 tracker_preferences_LDADD = 						\
-	$(top_builddir)/src/libtracker/libtrackerclient.la		\
+	$(top_builddir)/src/libtracker/libtrackerclient- TRACKER_API_VERSION@.la	\
 	$(top_builddir)/src/libtracker-common/libtracker-common.la 	\
 	$(LIBGLADE_LIBS)						\
 	$(GTK2_LIBS) 							\
diff --git a/src/tracker-search-tool/Makefile.am b/src/tracker-search-tool/Makefile.am
index 6beca4e..3b21d7e 100644
--- a/src/tracker-search-tool/Makefile.am
+++ b/src/tracker-search-tool/Makefile.am
@@ -36,8 +36,8 @@ tracker_search_tool_LDADD =   					\
 	$(GCOV_LIBS)    						\
 	$(GNOMEDESKTOP_LIBS) 					\
 	$(DBUS_LIBS)						\
-        $(top_builddir)/src/libtracker-gtk/libtracker-gtk.la 	\
-	$(top_builddir)/src/libtracker/libtrackerclient.la 
+        $(top_builddir)/src/libtracker-gtk/libtracker-gtk- TRACKER_API_VERSION@.la 	\
+	$(top_builddir)/src/libtracker/libtrackerclient- TRACKER_API_VERSION@.la 
 
 
 desktopdir = $(datadir)/applications
diff --git a/src/tracker-utils/Makefile.am b/src/tracker-utils/Makefile.am
index acf3e6e..987b19b 100644
--- a/src/tracker-utils/Makefile.am
+++ b/src/tracker-utils/Makefile.am
@@ -12,7 +12,7 @@ INCLUDES =								\
 	$(DBUS_CFLAGS)
 
 libs = 									\
-	$(top_builddir)/src/libtracker/libtrackerclient.la		\
+	$(top_builddir)/src/libtracker/libtrackerclient- TRACKER_API_VERSION@.la	\
 	$(top_builddir)/src/libtracker-common/libtracker-common.la	\
 	$(top_builddir)/src/libtracker-db/libtracker-db.la		\
 	$(GIO_LIBS)							\



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