[tracker] src/libtracker-miner: Export all symbols if GCov is enabled



commit ac59e6d42fee3fc9cb9ec1fc9a08f9a804f69814
Author: Ivan Frade <ivan frade gmail com>
Date:   Fri Sep 9 19:00:06 2011 +0300

    src/libtracker-miner: Export all symbols if GCov is enabled
    
    So we can unit-test internal code of libtracker-miner
    Note that on release GCov is disabled and the symbols will be filtered then

 src/libtracker-miner/Makefile.am |    7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)
---
diff --git a/src/libtracker-miner/Makefile.am b/src/libtracker-miner/Makefile.am
index 0577626..8729212 100644
--- a/src/libtracker-miner/Makefile.am
+++ b/src/libtracker-miner/Makefile.am
@@ -85,8 +85,13 @@ libtracker_minerinclude_HEADERS =                      \
 	tracker-thumbnailer.h
 
 libtracker_miner_ TRACKER_API_VERSION@_la_LDFLAGS =    \
-	-version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE) \
+	-version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE)
+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|password_provider|network_provider)_.*'
+endif
 
 libtracker_miner_ TRACKER_API_VERSION@_la_LIBADD =     \
 	$(top_builddir)/src/libtracker-common/libtracker-common.la \



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