[tracker] libtracker-miner: Hide private tracker_task_* and tracker_priority_queue_* API



commit 8a4a69b4c37333540bdb8ca8d15e10146ff56554
Author: Michael Biebl <biebl debian org>
Date:   Tue Sep 20 15:50:28 2011 +0200

    libtracker-miner: Hide private tracker_task_* and tracker_priority_queue_* API
    
    Instead of adding the tracker_task_* and tracker_priority_queue_* API to
    the list of exported symbols, add a private convenience library which
    the test suite can link against.
    
    This supersedes commit 34b06efed92bc2eb084e055c1ec78b98994f901e and
    f9e335dc7b39273b8848943eba037ba0a7c32c9f

 src/libtracker-miner/Makefile.am   |    9 +++++++--
 tests/libtracker-miner/Makefile.am |    1 +
 2 files changed, 8 insertions(+), 2 deletions(-)
---
diff --git a/src/libtracker-miner/Makefile.am b/src/libtracker-miner/Makefile.am
index 5ae6e35..34da63d 100644
--- a/src/libtracker-miner/Makefile.am
+++ b/src/libtracker-miner/Makefile.am
@@ -22,6 +22,8 @@ AM_CPPFLAGS =                                          \
 
 lib_LTLIBRARIES = libtracker-miner- TRACKER_API_VERSION@.la
 
+noinst_LTLIBRARIES = libtracker-miner-private.la
+
 libtracker_minerdir = $(libdir)/tracker-$(TRACKER_API_VERSION)
 libtracker_minerincludedir=$(includedir)/tracker-$(TRACKER_API_VERSION)/libtracker-miner/
 
@@ -57,12 +59,14 @@ miner_sources = 				       \
 	tracker-miner-web.h                            
 
 
+libtracker_miner_private_la_SOURCES =                  \
+	$(private_sources)
+
 libtracker_miner_ TRACKER_API_VERSION@_la_SOURCES =    \
 	$(network_provider_sources)                    \
 	$(password_provider_sources)                   \
 	$(crawler_sources)			       \
 	$(miner_sources)			       \
-	$(private_sources)			       \
 	tracker-network-provider.c                     \
 	tracker-password-provider.c                    \
 	tracker-thumbnailer.c                          \
@@ -90,10 +94,11 @@ if !ENABLE_GCOV
 # Using enable_gcov instead of have_unit_test because when doing a release
 #  we disable gcov but NOT the unit tests
 libtracker_miner_ TRACKER_API_VERSION@_la_LDFLAGS +=    \
-	-export-symbols-regex '^tracker_(miner|thumbnailer|crawler|storage|priority|task|password_provider|network_provider)_.*'
+	-export-symbols-regex '^tracker_(miner|thumbnailer|crawler|storage|password_provider|network_provider)_.*'
 endif
 
 libtracker_miner_ TRACKER_API_VERSION@_la_LIBADD =     \
+	libtracker-miner-private.la \
 	$(top_builddir)/src/libtracker-common/libtracker-common.la \
 	$(top_builddir)/src/libtracker-sparql-backend/libtracker-sparql- TRACKER_API_VERSION@.la \
 	-lm                                            \
diff --git a/tests/libtracker-miner/Makefile.am b/tests/libtracker-miner/Makefile.am
index 6a00089..b85fd01 100644
--- a/tests/libtracker-miner/Makefile.am
+++ b/tests/libtracker-miner/Makefile.am
@@ -38,6 +38,7 @@ AM_CPPFLAGS =                                          \
 
 LDADD =                                                \
 	$(top_builddir)/src/libtracker-miner/libtracker-miner- TRACKER_API_VERSION@.la \
+	$(top_builddir)/src/libtracker-miner/libtracker-miner-private.la \
 	$(top_builddir)/src/libtracker-sparql-backend/libtracker-sparql- TRACKER_API_VERSION@.la \
 	$(top_builddir)/src/libtracker-common/libtracker-common.la \
 	$(BUILD_LIBS)                                  \



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