aboutsummaryrefslogtreecommitdiffstats
path: root/modules/prefer-plain
diff options
context:
space:
mode:
authorMilan Crha <mcrha@redhat.com>2014-03-25 19:04:58 +0800
committerMilan Crha <mcrha@redhat.com>2014-03-25 19:04:58 +0800
commit8692b1cb72654888f0dab31843bdf05d3ac2a888 (patch)
tree3e172e8085830cf0770cf0a7ab04bd714753d3a9 /modules/prefer-plain
parent399b1a6fc593a9c5e692923120346e0386f578e5 (diff)
downloadgsoc2013-evolution-8692b1cb72654888f0dab31843bdf05d3ac2a888.tar
gsoc2013-evolution-8692b1cb72654888f0dab31843bdf05d3ac2a888.tar.gz
gsoc2013-evolution-8692b1cb72654888f0dab31843bdf05d3ac2a888.tar.bz2
gsoc2013-evolution-8692b1cb72654888f0dab31843bdf05d3ac2a888.tar.lz
gsoc2013-evolution-8692b1cb72654888f0dab31843bdf05d3ac2a888.tar.xz
gsoc2013-evolution-8692b1cb72654888f0dab31843bdf05d3ac2a888.tar.zst
gsoc2013-evolution-8692b1cb72654888f0dab31843bdf05d3ac2a888.zip
Add an --enable-code-coverage configure option to enable gcov support
When enabled, this will compile all libraries/binaries with the necessary gcc and ld flags to enable code coverage support using gcov.
Diffstat (limited to 'modules/prefer-plain')
-rw-r--r--modules/prefer-plain/Makefile.am27
-rw-r--r--modules/prefer-plain/plugin/Makefile.am5
2 files changed, 17 insertions, 15 deletions
diff --git a/modules/prefer-plain/Makefile.am b/modules/prefer-plain/Makefile.am
index d48a445f7d..e3b546bb68 100644
--- a/modules/prefer-plain/Makefile.am
+++ b/modules/prefer-plain/Makefile.am
@@ -3,22 +3,23 @@ SUBDIRS=plugin
module_LTLIBRARIES = module-prefer-plain.la
module_prefer_plain_la_CPPFLAGS = \
- $(AM_CPPFLAGS) \
- -I$(top_srcdir) \
- -DEVOLUTION_PRIVDATADIR=\""$(privdatadir)"\" \
- -DG_LOG_DOMAIN=\"evolution-module-prefer-plain\" \
- $(EVOLUTION_DATA_SERVER_CFLAGS) \
- $(GNOME_PLATFORM_CFLAGS) \
- $(GTKHTML_CFLAGS)
+ $(AM_CPPFLAGS) \
+ -I$(top_srcdir) \
+ -DEVOLUTION_PRIVDATADIR=\""$(privdatadir)"\" \
+ -DG_LOG_DOMAIN=\"evolution-module-prefer-plain\" \
+ $(EVOLUTION_DATA_SERVER_CFLAGS) \
+ $(GNOME_PLATFORM_CFLAGS) \
+ $(GTKHTML_CFLAGS) \
+ $(CODE_COVERAGE_CFLAGS)
module_prefer_plain_la_SOURCES = \
- e-mail-parser-prefer-plain.c \
- e-mail-parser-prefer-plain.h \
- e-mail-display-popup-prefer-plain.c \
- e-mail-display-popup-prefer-plain.h \
+ e-mail-parser-prefer-plain.c \
+ e-mail-parser-prefer-plain.h \
+ e-mail-display-popup-prefer-plain.c \
+ e-mail-display-popup-prefer-plain.h \
evolution-module-prefer-plain.c
-module_prefer_plain_la_LIBADD = \
+module_prefer_plain_la_LIBADD = \
$(top_builddir)/e-util/libevolution-util.la \
$(top_builddir)/mail/libevolution-mail.la \
$(top_builddir)/em-format/libevolution-mail-formatter.la \
@@ -28,6 +29,6 @@ module_prefer_plain_la_LIBADD = \
$(GTKHTML_LIBS)
module_prefer_plain_la_LDFLAGS = \
- -avoid-version -module $(NO_UNDEFINED)
+ -avoid-version -module $(NO_UNDEFINED) $(CODE_COVERAGE_LDFLAGS)
-include $(top_srcdir)/git.mk
diff --git a/modules/prefer-plain/plugin/Makefile.am b/modules/prefer-plain/plugin/Makefile.am
index 177da17add..b3179af307 100644
--- a/modules/prefer-plain/plugin/Makefile.am
+++ b/modules/prefer-plain/plugin/Makefile.am
@@ -9,12 +9,13 @@ liborg_gnome_prefer_plain_la_CPPFLAGS = \
-DEVOLUTION_PRIVDATADIR=\""$(privdatadir)"\" \
$(EVOLUTION_DATA_SERVER_CFLAGS) \
$(GNOME_PLATFORM_CFLAGS) \
- $(GTKHTML_CFLAGS)
+ $(GTKHTML_CFLAGS) \
+ $(CODE_COVERAGE_CFLAGS)
liborg_gnome_prefer_plain_la_SOURCES = \
config-ui.c
-liborg_gnome_prefer_plain_la_LDFLAGS = -module -avoid-version $(NO_UNDEFINED)
+liborg_gnome_prefer_plain_la_LDFLAGS = -module -avoid-version $(NO_UNDEFINED) $(CODE_COVERAGE_LDFLAGS)
liborg_gnome_prefer_plain_la_LIBADD = \
$(EVOLUTION_DATA_SERVER_LIBS) \