[libsoup] build-sys: add code coverage



commit 980a82319f8ba9718ad316885a23c657a4f9054f
Author: Marc-André Lureau <marcandre lureau gmail com>
Date:   Wed Feb 18 18:18:47 2015 +0100

    build-sys: add code coverage
    
    https://bugzilla.gnome.org/show_bug.cgi?id=744744

 Makefile.am         |    2 ++
 configure.ac        |    4 +++-
 libsoup/Makefile.am |    6 ++++--
 3 files changed, 9 insertions(+), 3 deletions(-)
---
diff --git a/Makefile.am b/Makefile.am
index c8fa95c..5076ef8 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -23,3 +23,5 @@ pkgconfig_DATA = libsoup-2.4.pc
 if BUILD_LIBSOUP_GNOME
 pkgconfig_DATA += libsoup-gnome-2.4.pc
 endif
+
+ CODE_COVERAGE_RULES@
diff --git a/configure.ac b/configure.ac
index eb3e29c..e7c832a 100644
--- a/configure.ac
+++ b/configure.ac
@@ -47,7 +47,7 @@ dnl ***************************
 debug_default=minimum
 
 # Declare --enable-* args and collect ac_help strings
-AC_ARG_ENABLE(debug, 
+AC_ARG_ENABLE(debug,
              AS_HELP_STRING([--enable-debug=[no/minimum/yes]],
                             [turn on debugging (default=$debug_default)]),,
              enable_debug=$debug_default)
@@ -313,6 +313,8 @@ fi
 AC_SUBST(ntlm_auth)
 AC_DEFINE_UNQUOTED(NTLM_AUTH, "$ntlm_auth", [Samba's 'winbind' daemon helper 'ntlm_auth' which can be used 
for NTLM single-sign-on])
 
+AX_CODE_COVERAGE
+
 dnl ****************************************************
 dnl *** Warnings to show if using GCC                ***
 dnl *** (do this last so -Werror won't mess up tests ***
diff --git a/libsoup/Makefile.am b/libsoup/Makefile.am
index 431c99e..3c32152 100644
--- a/libsoup/Makefile.am
+++ b/libsoup/Makefile.am
@@ -16,7 +16,8 @@ AM_CPPFLAGS =                                 \
        $(SOUP_DEBUG_FLAGS)             \
        $(GLIB_CFLAGS)                  \
        $(XML_CFLAGS)                   \
-       $(SQLITE_CFLAGS)
+       $(SQLITE_CFLAGS)                \
+       $(CODE_COVERAGE_CFLAGS)
 
 libsoupincludedir = $(includedir)/libsoup-2.4/libsoup
 
@@ -81,7 +82,8 @@ lib_LTLIBRARIES = libsoup-2.4.la
 libsoup_2_4_la_LDFLAGS =       \
        -version-info $(SOUP_CURRENT):$(SOUP_REVISION):$(SOUP_AGE) \
        -no-undefined \
-       -export-symbols $(srcdir)/libsoup-2.4.sym
+       -export-symbols $(srcdir)/libsoup-2.4.sym \
+       $(CODE_COVERAGE_LDFLAGS)
 
 EXTRA_DIST += libsoup-2.4.sym
 


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