[tracker/tracker-0.10] src/libtracker-miner: Export all symbols if GCov is enabled
- From: Martyn James Russell <mr src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker/tracker-0.10] src/libtracker-miner: Export all symbols if GCov is enabled
- Date: Thu, 15 Sep 2011 18:17:06 +0000 (UTC)
commit c256b99d7b7ff85aff65e1d4131256ed01cc23ea
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 17f34be..749ed35 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]