summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog29
-rw-r--r--configure.ac21
-rw-r--r--src/libinotify/Makefile.am4
-rw-r--r--src/libstemmer/Makefile.am2
-rw-r--r--src/libtracker-common/Makefile.am2
-rw-r--r--src/libtracker-db/Makefile.am2
-rw-r--r--src/libtracker/Makefile.am2
-rw-r--r--src/tracker-extract/Makefile.am41
-rw-r--r--src/tracker-fts/Makefile.am2
-rw-r--r--src/tracker-indexer/Makefile.am4
-rw-r--r--src/tracker-indexer/modules/Makefile.am5
-rw-r--r--src/tracker-preferences/Makefile.am2
-rw-r--r--src/tracker-search-tool/Makefile.am2
-rw-r--r--src/tracker-utils/Makefile.am2
-rw-r--r--src/trackerd/Makefile.am2
-rw-r--r--tests/common/Makefile.am4
-rw-r--r--tests/libtracker-common/Makefile.am7
-rw-r--r--tests/libtracker-db/Makefile.am2
-rw-r--r--tests/tracker-extract/Makefile.am6
-rw-r--r--tests/tracker-indexer/Makefile.am2
-rw-r--r--tests/trackerd/Makefile.am2
21 files changed, 121 insertions, 24 deletions
diff --git a/ChangeLog b/ChangeLog
index d1da3f5ff..931ef8aea 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,8 +1,31 @@
2009-02-25 Philip Van Hoof <philip@codeminded.be>
- * src/trackerd/tracker-daemon.c
- * src/trackerd/tracker-daemon.h
- * data/dbus/tracker-daemon.xml: Added a Backup method
+ * src/libtracker/Makefile.am
+ * src/tracker-fts/Makefile.am
+ * src/tracker-indexer/modules/Makefile.am
+ * src/tracker-indexer/Makefile.am
+ * src/tracker-utils/Makefile.am
+ * src/tracker-preferences/Makefile.am
+ * src/trackerd/Makefile.am
+ * src/tracker-extract/Makefile.am
+ * src/libstemmer/Makefile.am
+ * src/libtracker-db/Makefile.am
+ * src/libtracker-common/Makefile.am
+ * src/libinotify/Makefile.am
+ * src/tracker-search-tool/Makefile.am
+ * tests/trackerd/Makefile.am
+ * tests/tracker-extract/Makefile.am
+ * tests/libtracker-db/Makefile.am
+ * tests/tracker-indexer/Makefile.am
+ * tests/common/Makefile.am
+ * tests/libtracker-common/Makefile.am
+ * configure.ac: Added support for coverage reporting
+
+2009-02-25 Philip Van Hoof <philip@codeminded.be>
+
+ * src/trackerd/tracker-daemon.c
+ * src/trackerd/tracker-daemon.h
+ * data/dbus/tracker-daemon.xml: Added a Backup method
to the Daemon object on DBus
2009-02-24 Mikael Ottela <mikael.ottela@ixonos.com>
diff --git a/configure.ac b/configure.ac
index 47c2c0d98..07335d7b8 100644
--- a/configure.ac
+++ b/configure.ac
@@ -228,6 +228,27 @@ AM_GLIB_GNU_GETTEXT
IT_PROG_INTLTOOL([0.35.0])
####################################################################
+# Enable GCOV coverage reporting support
+####################################################################
+
+AC_ARG_ENABLE(gcov,
+ AS_HELP_STRING([--enable-gcov],
+ [enable coverage reporting support (default=no)]), ,
+ [enable_gcov=no])
+
+if test "x$enable_gcov" != "xno" ; then
+ GCOV_CFLAGS="-ftest-coverage -fprofile-arcs"
+ GCOV_LIBS="-lgcov"
+else
+ GCOV_CFLAGS=
+ GCOV_LIBS=
+fi
+
+AC_SUBST(GCOV_CFLAGS)
+AC_SUBST(GCOV_LIBS)
+
+
+####################################################################
# Should we build GLib based unit tests
####################################################################
diff --git a/src/libinotify/Makefile.am b/src/libinotify/Makefile.am
index 060ff05c3..a53bbda19 100644
--- a/src/libinotify/Makefile.am
+++ b/src/libinotify/Makefile.am
@@ -4,6 +4,7 @@ INCLUDES = \
-DG_LOG_DOMAIN=\"libinotify\" \
-I$(top_srcdir)/src \
$(WARN_CFLAGS) \
+ $(GCOV_CFLAGS) \
$(GLIB2_CFLAGS)
noinst_LTLIBRARIES = libinotify.la
@@ -20,4 +21,5 @@ libinotify_la_SOURCES = \
libinotify_la_LDFLAGS = -version-info 0:0:0
libinotify_la_LIBADD = \
- $(GLIB2_LIBS)
+ $(GLIB2_LIBS) \
+ $(GCOV_LIBS)
diff --git a/src/libstemmer/Makefile.am b/src/libstemmer/Makefile.am
index 136cf646c..16426cd76 100644
--- a/src/libstemmer/Makefile.am
+++ b/src/libstemmer/Makefile.am
@@ -48,5 +48,7 @@ noinst_HEADERS = \
stem_UTF_8_spanish.h \
stem_UTF_8_swedish.h
+
+libstemmer_la_LIBADD = $(GCOV_LIBS)
libstemmer_la_LDFLAGS = -version-info 0:0:0
diff --git a/src/libtracker-common/Makefile.am b/src/libtracker-common/Makefile.am
index ec790ab27..eba6d6ad4 100644
--- a/src/libtracker-common/Makefile.am
+++ b/src/libtracker-common/Makefile.am
@@ -7,6 +7,7 @@ INCLUDES = \
-I$(top_srcdir)/src \
$(WARN_CFLAGS) \
$(GLIB2_CFLAGS) \
+ $(GCOV_CFLAGS) \
$(GDKPIXBUF_CFLAGS) \
$(GIO_CFLAGS) \
$(PANGO_CFLAGS) \
@@ -83,6 +84,7 @@ libtracker_common_la_LIBADD = \
$(UNAC_LIBS) \
$(PANGO_LIBS) \
$(GIO_LIBS) \
+ $(GCOV_LIBS) \
$(GLIB2_LIBS) \
$(GDKPIXBUF_LIBS)
diff --git a/src/libtracker-db/Makefile.am b/src/libtracker-db/Makefile.am
index 21429a5d2..44f801aea 100644
--- a/src/libtracker-db/Makefile.am
+++ b/src/libtracker-db/Makefile.am
@@ -7,6 +7,7 @@ INCLUDES = \
-I$(top_srcdir)/src \
$(WARN_CFLAGS) \
$(GLIB2_CFLAGS) \
+ $(GCOV_CFLAGS) \
$(DBUS_CFLAGS) \
$(SQLITE3_CFLAGS) \
$(QDBM_CFLAGS)
@@ -42,5 +43,6 @@ libtracker_db_la_LIBADD = \
$(SQLITE3_LIBS) \
$(QDBM_LIBS) \
$(DBUS_LIBS) \
+ $(GCOV_LIBS) \
$(GLIB2_LIBS) \
-lz \ No newline at end of file
diff --git a/src/libtracker/Makefile.am b/src/libtracker/Makefile.am
index 00efc2860..4ff802d61 100644
--- a/src/libtracker/Makefile.am
+++ b/src/libtracker/Makefile.am
@@ -6,6 +6,7 @@ INCLUDES = \
-I$(top_srcdir)/src \
$(WARN_CFLAGS) \
$(GLIB2_CFLAGS) \
+ $(GCOV_CFLAGS) \
$(DBUS_CFLAGS)
lib_LTLIBRARIES = libtrackerclient.la
@@ -15,6 +16,7 @@ libtrackerclient_la_LDFLAGS = -version-info 0:0:0
libtrackerclient_la_LIBADD = \
$(GLIB2_LIBS) \
$(DBUS_LIBS) \
+ $(GCOV_LIBS) \
$(GOBJECT_LIBS)
include_HEADERS = \
diff --git a/src/tracker-extract/Makefile.am b/src/tracker-extract/Makefile.am
index 6037890ba..e90ebbe8e 100644
--- a/src/tracker-extract/Makefile.am
+++ b/src/tracker-extract/Makefile.am
@@ -1,6 +1,6 @@
include $(top_srcdir)/Makefile.decl
-module_flags = -module -avoid-version -no-undefined
+module_flags = -modu
modulesdir = $(libdir)/tracker/extract-modules
INCLUDES = \
@@ -11,6 +11,7 @@ INCLUDES = \
-I$(top_srcdir)/src \
$(WARN_CFLAGS) \
$(GLIB2_CFLAGS) \
+ $(GCOV_CFLAGS) \
$(GDKPIXBUF_CFLAGS) \
$(GMODULE_CFLAGS) \
$(DBUS_CFLAGS) \
@@ -110,7 +111,7 @@ albumart_sources = \
if HAVE_GDKPIXBUF
albumart_flags += $(DBUS_CFLAGS)
albumart_libs += \
- $(GDKPIXBUF_LIBS) $(DBUS_LIBS)
+ $(GDKPIXBUF_LIBS) $(DBUS_LIBS) $(GCOV_LIBS)
endif
escape_sources = \
@@ -120,17 +121,17 @@ escape_sources = \
# ABW
libextract_abw_la_SOURCES = tracker-extract-abw.c $(escape_sources)
libextract_abw_la_LDFLAGS = $(module_flags)
-libextract_abw_la_LIBADD = $(GLIB2_LIBS)
+libextract_abw_la_LIBADD = $(GLIB2_LIBS) $(GCOV_LIBS)
# Imagemagick
# libextract_imagemagick_la_SOURCES = tracker-extract-imagemagick.c $(xmp_sources)
# libextract_imagemagick_la_LDFLAGS = $(module_flags)
-# libextract_imagemagick_la_LIBADD = $(GLIB2_LIBS) $(EXEMPI_LIBS)
+# libextract_imagemagick_la_LIBADD = $(GLIB2_LIBS) $(EXEMPI_LIBS) $(GCOV_LIBS)
# MP3
libextract_mp3_la_SOURCES = tracker-extract-mp3.c $(albumart_sources) $(escape_sources)
libextract_mp3_la_LDFLAGS = $(module_flags) $(albumart_flags)
-libextract_mp3_la_LIBADD = $(albumart_libs) $(GLIB2_LIBS)
+libextract_mp3_la_LIBADD = $(albumart_libs) $(GLIB2_LIBS) $(GCOV_LIBS)
# MPlayer
libextract_mplayer_la_SOURCES = tracker-extract-mplayer.c $(escape_sources)
@@ -140,49 +141,50 @@ libextract_mplayer_la_LIBADD = $(GLIB2_LIBS)
# Oasis
libextract_oasis_la_SOURCES = tracker-extract-oasis.c $(escape_sources)
libextract_oasis_la_LDFLAGS = $(module_flags)
-libextract_oasis_la_LIBADD = $(GLIB2_LIBS)
+libextract_oasis_la_LIBADD = $(GLIB2_LIBS) $(GCOV_LIBS)
# PNG
libextract_png_la_SOURCES = tracker-extract-png.c $(xmp_sources) $(escape_sources)
libextract_png_la_LDFLAGS = $(module_flags)
-libextract_png_la_LIBADD = $(GLIB2_LIBS) $(LIBPNG_LIBS) $(EXEMPI_LIBS)
+libextract_png_la_LIBADD = $(GLIB2_LIBS) $(LIBPNG_LIBS) $(EXEMPI_LIBS) $(GCOV_LIBS)
# PS
libextract_ps_la_SOURCES = tracker-extract-ps.c $(escape_sources)
libextract_ps_la_LDFLAGS = $(module_flags)
libextract_ps_la_LIBADD = \
$(top_builddir)/src/libtracker-common/libtracker-common.la \
- $(GLIB2_LIBS)
+ $(GLIB2_LIBS) \
+ $(GCOV_LIBS)
# Totem
libextract_totem_la_SOURCES = tracker-extract-totem.c $(escape_sources)
libextract_totem_la_LDFLAGS = $(module_flags)
-libextract_totem_la_LIBADD = $(GLIB2_LIBS)
+libextract_totem_la_LIBADD = $(GLIB2_LIBS) $(GCOV_LIBS)
# XMP
libextract_xmp_la_SOURCES = tracker-extract-xmp.c $(xmp_sources) $(escape_sources)
libextract_xmp_la_LDFLAGS = $(module_flags)
-libextract_xmp_la_LIBADD = $(GLIB2_LIBS) $(EXEMPI_LIBS)
+libextract_xmp_la_LIBADD = $(GLIB2_LIBS) $(EXEMPI_LIBS) $(GCOV_LIBS)
# HTML
libextract_html_la_SOURCES = tracker-extract-html.c $(escape_sources)
libextract_html_la_LDFLAGS = $(module_flags)
-libextract_html_la_LIBADD = $(GLIB2_LIBS) $(LIBXML2_LIBS)
+libextract_html_la_LIBADD = $(GLIB2_LIBS) $(LIBXML2_LIBS) $(GCOV_LIBS)
# MS Office
libextract_msoffice_la_SOURCES = tracker-extract-msoffice.c $(escape_sources)
libextract_msoffice_la_LDFLAGS = $(module_flags)
-libextract_msoffice_la_LIBADD = $(GLIB2_LIBS) $(LIBGSF_LIBS)
+libextract_msoffice_la_LIBADD = $(GLIB2_LIBS) $(LIBGSF_LIBS) $(GCOV_LIBS)
# PDF
libextract_pdf_la_SOURCES = tracker-extract-pdf.c $(xmp_sources) $(escape_sources)
libextract_pdf_la_LDFLAGS = $(module_flags)
-libextract_pdf_la_LIBADD = $(GLIB2_LIBS) $(POPPLER_GLIB_LIBS) $(EXEMPI_LIBS)
+libextract_pdf_la_LIBADD = $(GLIB2_LIBS) $(POPPLER_GLIB_LIBS) $(EXEMPI_LIBS) $(GCOV_LIBS)
# GStreamer
libextract_gstreamer_la_SOURCES = tracker-extract-gstreamer.c $(albumart_sources) $(escape_sources)
libextract_gstreamer_la_LDFLAGS = $(module_flags) $(albumart_flags)
-libextract_gstreamer_la_LIBADD = $(albumart_libs) $(GSTREAMER_LIBS) $(GLIB2_LIBS)
+libextract_gstreamer_la_LIBADD = $(albumart_libs) $(GSTREAMER_LIBS) $(GLIB2_LIBS) $(GCOV_LIBS)
# GStreamer tagreadbin
#libextract_gstreamer_tagreadbin_la_SOURCES = tracker-extract-gstreamer-tagreadbin.c $(albumart_sources) $(escape_sources)
@@ -192,27 +194,27 @@ libextract_gstreamer_la_LIBADD = $(albumart_libs) $(GSTREAMER_LIBS) $(GLIB2_LIBS
# GStreamer helix
libextract_gstreamer_helix_la_SOURCES = tracker-extract-gstreamer-helix.c $(albumart_sources) $(escape_sources)
libextract_gstreamer_helix_la_LDFLAGS = $(module_flags) $(albumart_flags)
-libextract_gstreamer_helix_la_LIBADD = $(albumart_libs) $(GSTREAMER_LIBS) $(GLIB2_LIBS)
+libextract_gstreamer_helix_la_LIBADD = $(albumart_libs) $(GSTREAMER_LIBS) $(GLIB2_LIBS) $(GCOV_LIBS)
# Xine
libextract_xine_la_SOURCES = tracker-extract-libxine.c $(escape_sources)
libextract_xine_la_LDFLAGS = $(module_flags)
-libextract_xine_la_LIBADD = $(GLIB2_LIBS) $(XINE_LIBS)
+libextract_xine_la_LIBADD = $(GLIB2_LIBS) $(XINE_LIBS) $(GCOV_LIBS)
# JPEG
libextract_jpeg_la_SOURCES = tracker-extract-jpeg.c $(xmp_sources) $(iptc_sources) $(escape_sources)
libextract_jpeg_la_LDFLAGS = $(module_flags)
-libextract_jpeg_la_LIBADD = $(GLIB2_LIBS) $(LIBJPEG_LIBS) $(LIBEXIF_LIBS) $(LIBIPTCDATA_LIBS) $(EXEMPI_LIBS)
+libextract_jpeg_la_LIBADD = $(GLIB2_LIBS) $(LIBJPEG_LIBS) $(LIBEXIF_LIBS) $(LIBIPTCDATA_LIBS) $(EXEMPI_LIBS) $(GCOV_LIBS)
# TIFF
libextract_tiff_la_SOURCES = tracker-extract-tiff.c $(xmp_sources) $(iptc_sources) $(escape_sources)
libextract_tiff_la_LDFLAGS = $(module_flags)
-libextract_tiff_la_LIBADD = $(GLIB2_LIBS) $(LIBTIFF_LIBS) $(LIBIPTCDATA_LIBS) $(EXEMPI_LIBS)
+libextract_tiff_la_LIBADD = $(GLIB2_LIBS) $(LIBTIFF_LIBS) $(LIBIPTCDATA_LIBS) $(EXEMPI_LIBS) $(GCOV_LIBS)
# Playlists using totem-pl-parser
libextract_playlist_la_SOURCES = tracker-extract-playlist.c $(escape_sources)
libextract_playlist_la_LDFLAGS = $(module_flags)
-libextract_playlist_la_LIBADD = $(GLIB2_LIBS) $(TOTEM_PL_PARSER_LIBS)
+libextract_playlist_la_LIBADD = $(GLIB2_LIBS) $(TOTEM_PL_PARSER_LIBS) $(GCOV_LIBS)
#
# Binaries
@@ -231,6 +233,7 @@ tracker_extract_LDADD = \
$(top_builddir)/src/libtracker-common/libtracker-common.la \
$(GMODULE_LIBS) \
$(GTHREAD_LIBS) \
+ $(GCOV_LIBS) \
$(GLIB2_LIBS)
dbus_sources = \
diff --git a/src/tracker-fts/Makefile.am b/src/tracker-fts/Makefile.am
index de4b5e7c1..270726efa 100644
--- a/src/tracker-fts/Makefile.am
+++ b/src/tracker-fts/Makefile.am
@@ -4,6 +4,7 @@ INCLUDES = \
-I$(top_srcdir)/src \
$(WARN_CFLAGS) \
$(GLIB2_CFLAGS) \
+ $(GCOV_CFLAGS) \
$(PANGO_CFLAGS) \
$(SQLITE3_CFLAGS) \
-DSTORE_CATEGORY=1
@@ -23,5 +24,6 @@ tracker_fts_la_LIBADD = \
$(top_builddir)/src/libtracker-db/libtracker-db.la \
$(SQLITE3_LIBS) \
$(GTHREAD_LIBS) \
+ $(GCOV_LIBS) \
$(PANGO_LIBS) \
$(GLIB2_LIBS)
diff --git a/src/tracker-indexer/Makefile.am b/src/tracker-indexer/Makefile.am
index fd35865bc..579dd43e3 100644
--- a/src/tracker-indexer/Makefile.am
+++ b/src/tracker-indexer/Makefile.am
@@ -17,6 +17,7 @@ INCLUDES = \
$(GMODULE_CFLAGS) \
$(PANGO_CFLAGS) \
$(DBUS_CFLAGS) \
+ $(GCOV_CFLAGS) \
$(RAPTOR_CFLAGS)
libtracker_moduledir = $(libdir)/tracker
@@ -36,6 +37,8 @@ libtracker_moduleinclude_HEADERS = \
tracker-module-metadata-utils.h \
tracker-module-metadata.h
+libtracker_module_la_LIBADD = $(GCOV_LIBS) $(GCOV_LIBS)
+
libexec_PROGRAMS = tracker-indexer
tracker_indexer_SOURCES = \
@@ -66,6 +69,7 @@ tracker_indexer_LDADD = \
$(GTHREAD_LIBS) \
$(PANGO_LIBS) \
$(GIO_LIBS) \
+ $(GCOV_LIBS) \
$(GLIB2_LIBS) \
$(RAPTOR_LIBS) \
-lz \
diff --git a/src/tracker-indexer/modules/Makefile.am b/src/tracker-indexer/modules/Makefile.am
index 1133e8744..9bc68f9bf 100644
--- a/src/tracker-indexer/modules/Makefile.am
+++ b/src/tracker-indexer/modules/Makefile.am
@@ -14,6 +14,7 @@ INCLUDES = \
-I$(top_srcdir)/src \
$(WARN_CFLAGS) \
$(GLIB2_CFLAGS) \
+ $(GCOV_CFLAGS) \
$(GMODULE_CFLAGS) \
$(GIO_CFLAGS) \
$(GCONF_CFLAGS) \
@@ -31,6 +32,7 @@ libtracker_module_applications_la_LDFLAGS = $(module_flags)
libtracker_module_applications_la_LIBADD = \
$(GMODULE_LIBS) \
$(GIO_LIBS) \
+ $(GCOV_LIBS) \
$(GLIB2_LIBS)
# Files module
@@ -39,6 +41,7 @@ libtracker_module_files_la_LDFLAGS = $(module_flags)
libtracker_module_files_la_LIBADD = \
$(GMODULE_LIBS) \
$(GIO_LIBS) \
+ $(GCOV_LIBS) \
$(GLIB2_LIBS)
# Instant messaging module
@@ -47,6 +50,7 @@ libtracker_module_gaim_conversations_la_LDFLAGS = $(module_flags)
libtracker_module_gaim_conversations_la_LIBADD = \
$(GMODULE_LIBS) \
$(GIO_LIBS) \
+ $(GCOV_LIBS) \
$(GLIB2_LIBS)
if HAVE_GCONF
@@ -72,6 +76,7 @@ libtracker_module_evolution_la_LIBADD = \
$(GLIB2_LIBS) \
$(GCONF_LIBS) \
$(GMIME_LIBS) \
+ $(GCOV_LIBS) \
$(SQLITE3_LIBS)
endif
diff --git a/src/tracker-preferences/Makefile.am b/src/tracker-preferences/Makefile.am
index 1254cf626..10eef6818 100644
--- a/src/tracker-preferences/Makefile.am
+++ b/src/tracker-preferences/Makefile.am
@@ -18,6 +18,7 @@ INCLUDES = \
-I$(top_srcdir)/src \
$(WARN_CFLAGS) \
$(GLIB_CFLAGS) \
+ $(GCOV_CFLAGS) \
$(GTK2_CFLAGS) \
$(DBUS_CFLAGS) \
$(LIBGLADE_CFLAGS)
@@ -37,6 +38,7 @@ tracker_preferences_LDADD = \
$(LIBGLADE_LIBS) \
$(GTK2_LIBS) \
$(DBUS_LIBS) \
+ $(GCOV_LIBS) \
$(GLIB_LIBS)
EXTRA_DIST = $(pkgdata_DATA)
diff --git a/src/tracker-search-tool/Makefile.am b/src/tracker-search-tool/Makefile.am
index 93d827d0f..6beca4e0e 100644
--- a/src/tracker-search-tool/Makefile.am
+++ b/src/tracker-search-tool/Makefile.am
@@ -10,6 +10,7 @@ INCLUDES = \
-I$(top_srcdir)/src/libtracker \
$(WARN_CFLAGS) \
$(GLIB2_CFLAGS) \
+ $(GCOV_CFLAGS) \
$(GIO_CFLAGS) \
$(DBUS_CFLAGS) \
$(GNOME_UTILS_CFLAGS) \
@@ -32,6 +33,7 @@ tracker_search_tool_LDADD = \
$(GLIB2_LIBS) \
$(GNOME_UTILS_LIBS) \
$(GIO_LIBS) \
+ $(GCOV_LIBS) \
$(GNOMEDESKTOP_LIBS) \
$(DBUS_LIBS) \
$(top_builddir)/src/libtracker-gtk/libtracker-gtk.la \
diff --git a/src/tracker-utils/Makefile.am b/src/tracker-utils/Makefile.am
index f1ad8cbd3..36a4e00c2 100644
--- a/src/tracker-utils/Makefile.am
+++ b/src/tracker-utils/Makefile.am
@@ -7,6 +7,7 @@ INCLUDES = \
-I$(top_srcdir)/src \
$(WARN_CFLAGS) \
$(GLIB2_CFLAGS) \
+ $(GCOV_CFLAGS) \
$(GIO_CFLAGS) \
$(DBUS_CFLAGS)
@@ -14,6 +15,7 @@ libs = \
$(top_builddir)/src/libtracker/libtrackerclient.la \
$(top_builddir)/src/libtracker-common/libtracker-common.la \
$(GIO_LIBS) \
+ $(GCOV_LIBS) \
$(GLIB2_LIBS)
bin_PROGRAMS = \
diff --git a/src/trackerd/Makefile.am b/src/trackerd/Makefile.am
index adc0bdfb2..0ee86bd31 100644
--- a/src/trackerd/Makefile.am
+++ b/src/trackerd/Makefile.am
@@ -14,6 +14,7 @@ INCLUDES = \
$(GTHREAD_CFLAGS) \
$(GMODULE_CFLAGS) \
$(GIO_CFLAGS) \
+ $(GCOV_CFLAGS) \
$(DBUS_CFLAGS) \
$(PANGO_CFLAGS) \
$(GMIME_CFLAGS) \
@@ -96,6 +97,7 @@ trackerd_LDADD = \
$(GTHREAD_LIBS) \
$(GLIB2_LIBS) \
$(RAPTOR_LIBS) \
+ $(GCOV_LIBS) \
$(trackerd_win_libs) \
-lz \
-lm
diff --git a/tests/common/Makefile.am b/tests/common/Makefile.am
index aeb726650..5d2d38f7f 100644
--- a/tests/common/Makefile.am
+++ b/tests/common/Makefile.am
@@ -5,6 +5,7 @@ noinst_LTLIBRARIES = libtracker-testcommon.la
INCLUDES = \
-DTEST_TEXT=\""$(top_srcdir)"/tests/libtracker-common/non-utf8.txt\" \
$(WARN_CFLAGS) \
+ $(GCOV_CFLAGS) \
$(GLIB2_CFLAGS)
libtracker_testcommon_la_SOURCES = \
@@ -12,5 +13,6 @@ libtracker_testcommon_la_SOURCES = \
tracker-test-helpers.h
libtracker_testcommon_la_LIBDADD = \
- $(GLIB2_LIBS)
+ $(GLIB2_LIBS) \
+ $(GCOV_LIBS)
diff --git a/tests/libtracker-common/Makefile.am b/tests/libtracker-common/Makefile.am
index 09ad49808..a637dfc90 100644
--- a/tests/libtracker-common/Makefile.am
+++ b/tests/libtracker-common/Makefile.am
@@ -27,6 +27,7 @@ INCLUDES = \
-I$(top_srcdir)/tests/common \
$(WARN_CFLAGS) \
$(GLIB2_CFLAGS) \
+ $(GCOV_CFLAGS) \
$(GMODULE_CFLAGS) \
$(GTHREAD_CFLAGS) \
$(PANGO_CFLAGS) \
@@ -39,6 +40,7 @@ tracker_ontology_LDADD = \
$(top_builddir)/src/libtracker-common/libtracker-common.la \
$(top_builddir)/tests/common/libtracker-testcommon.la \
$(GMODULE_LIBS) \
+ $(GCOV_LIBS) \
$(GTHREAD_LIBS) \
$(GLIB2_LIBS)
@@ -49,6 +51,7 @@ tracker_dbus_LDADD = \
$(top_builddir)/src/libtracker-common/libtracker-common.la \
$(top_builddir)/tests/common/libtracker-testcommon.la \
$(DBUS_LIBS) \
+ $(GCOV_LIBS) \
$(GMODULE_LIBS) \
$(GTHREAD_LIBS) \
$(GLIB2_LIBS)
@@ -60,6 +63,7 @@ tracker_type_utils_LDADD = \
$(top_builddir)/src/libtracker-common/libtracker-common.la \
$(top_builddir)/tests/common/libtracker-testcommon.la \
$(GMODULE_LIBS) \
+ $(GCOV_LIBS) \
$(GTHREAD_LIBS) \
$(GLIB2_LIBS)
@@ -70,6 +74,7 @@ tracker_file_utils_LDADD = \
$(top_builddir)/src/libtracker-common/libtracker-common.la \
$(top_builddir)/tests/common/libtracker-testcommon.la \
$(GMODULE_LIBS) \
+ $(GCOV_LIBS) \
$(GTHREAD_LIBS) \
$(GLIB2_LIBS)
@@ -82,6 +87,7 @@ tracker_file_utils_LDADD = \
# $(top_builddir)/src/libstemmer/libstemmer.la \
# $(GMODULE_LIBS) \
# $(GTHREAD_LIBS) \
+# $(GCOV_LIBS) \
# $(PANGO_LIBS) \
# $(GLIB2_LIBS)
#
@@ -92,6 +98,7 @@ tracker_file_utils_LDADD = \
# $(top_builddir)/src/libtracker-common/libtracker-common.la \
# $(top_builddir)/tests/common/libtracker-testcommon.la \
# $(GMODULE_LIBS) \
+# $(GCOV_LIBS) \
# $(GTHREAD_LIBS) \
# $(PANGO_LIBS) \
# $(GLIB2_LIBS)
diff --git a/tests/libtracker-db/Makefile.am b/tests/libtracker-db/Makefile.am
index d0e6a8536..2d37f0d3f 100644
--- a/tests/libtracker-db/Makefile.am
+++ b/tests/libtracker-db/Makefile.am
@@ -27,6 +27,7 @@ INCLUDES = \
-I$(top_srcdir)/tests/common \
$(WARN_CFLAGS) \
$(GLIB2_CFLAGS) \
+ $(GCOV_CFLAGS) \
$(GMODULE_CFLAGS) \
$(GTHREAD_CFLAGS) \
$(DBUS_CFLAGS) \
@@ -141,6 +142,7 @@ tracker_index_writer_LDADD = \
$(top_builddir)/src/libtracker-db/libtracker-db.la \
$(top_builddir)/tests/common/libtracker-testcommon.la \
$(QDBM_LIBS) \
+ $(GCOV_LIBS) \
$(GMODULE_LIBS) \
$(GTHREAD_LIBS) \
$(GLIB2_LIBS)
diff --git a/tests/tracker-extract/Makefile.am b/tests/tracker-extract/Makefile.am
index 310170e00..5fde6d0bf 100644
--- a/tests/tracker-extract/Makefile.am
+++ b/tests/tracker-extract/Makefile.am
@@ -29,6 +29,7 @@ INCLUDES = \
-I$(top_srcdir)/tests/common \
$(WARN_CFLAGS) \
$(GLIB2_CFLAGS) \
+ $(GCOV_CFLAGS) \
$(GMODULE_CFLAGS) \
$(GTHREAD_CFLAGS) \
$(PANGO_CFLAGS) \
@@ -58,6 +59,7 @@ test_tracker_extract_mp3_LDADD = \
$(top_builddir)/src/tracker-extract/libextract-mp3.la \
$(top_builddir)/src/libtracker-common/libtracker-common.la \
$(GMODULE_LIBS) \
+ $(GCOV_LIBS) \
$(GTHREAD_LIBS) \
$(GLIB2_LIBS)
@@ -69,6 +71,7 @@ test_tracker_extract_gstreamer_LDADD = \
$(top_builddir)/src/tracker-extract/libextract-gstreamer.la \
$(top_builddir)/src/libtracker-common/libtracker-common.la \
$(GMODULE_LIBS) \
+ $(GCOV_LIBS) \
$(GTHREAD_LIBS) \
$(GLIB2_LIBS) \
$(GSTREAMER_LIBS)
@@ -83,6 +86,7 @@ test_tracker_extract_jpeg_LDADD = \
$(top_builddir)/src/libtracker-common/libtracker-common.la \
$(GMODULE_LIBS) \
$(GTHREAD_LIBS) \
+ $(GCOV_LIBS) \
$(GLIB2_LIBS) \
$(LIBJPEG_LIBS) \
$(LIBEXIF_LIBS) \
@@ -98,6 +102,7 @@ test_tracker_extract_tiff_LDADD = \
$(GMODULE_LIBS) \
$(GTHREAD_LIBS) \
$(GLIB2_LIBS) \
+ $(GCOV_LIBS) \
$(LIBTIFF_LIBS) \
$(EXEMPI_LIBS)
@@ -111,6 +116,7 @@ test_tracker_extract_png_LDADD = \
$(GMODULE_LIBS) \
$(GTHREAD_LIBS) \
$(GLIB2_LIBS) \
+ $(GCOV_LIBS) \
$(LIBPNG_LIBS) \
$(EXEMPI_LIBS)
diff --git a/tests/tracker-indexer/Makefile.am b/tests/tracker-indexer/Makefile.am
index c921fd5a8..95a10cf3b 100644
--- a/tests/tracker-indexer/Makefile.am
+++ b/tests/tracker-indexer/Makefile.am
@@ -16,6 +16,7 @@ INCLUDES = \
-I$(top_builddir)/src/tracker-indexer \
$(WARN_CFLAGS) \
$(GLIB2_CFLAGS) \
+ $(GCOV_CFLAGS) \
$(GMODULE_CFLAGS) \
$(GTHREAD_CFLAGS) \
$(PANGO_CFLAGS) \
@@ -45,5 +46,6 @@ tracker_metadata_utils_LDADD = \
$(GMODULE_LIBS) \
$(GTHREAD_LIBS) \
$(GIO_LIBS) \
+ $(GCOV_LIBS) \
$(RAPTOR_LIBS) \
$(GLIB2_LIBS)
diff --git a/tests/trackerd/Makefile.am b/tests/trackerd/Makefile.am
index e9815c8d7..db33780d0 100644
--- a/tests/trackerd/Makefile.am
+++ b/tests/trackerd/Makefile.am
@@ -14,6 +14,7 @@ INCLUDES = \
$(GMODULE_CFLAGS) \
$(GTHREAD_CFLAGS) \
$(GIO_GFLAGS) \
+ $(GCOV_GFLAGS) \
$(DBUS_CFLAGS) \
$(QDBM_CFLAGS)
@@ -39,6 +40,7 @@ tracker_xesam_LDADD = \
$(GMODULE_LIBS) \
$(GTHREAD_LIBS) \
$(GLIB2_LIBS) \
+ $(GCOV_LIBS) \
$(DBUS_LIBS)
endif