~charlesk/appmenu-gtk/lp-788640

« back to all changes in this revision

Viewing changes to configure.ac

  • Committer: Charles Kerr
  • Date: 2012-04-04 02:24:41 UTC
  • mfrom: (147.1.1 appmenu-gtk)
  • Revision ID: charles.kerr@canonical.com-20120404022441-y5gtl1le61xc6jz2
merge lp:~allanlesage/appmenu-gtk/TDD to add gcov targets to autotools build for code-coverage reporting. For more information, see this blog post: http://qualityhour.wordpress.com/2012/01/29/test-coverage-tutorial-for-cc-autotools-projects/

Show diffs side-by-side

added added

removed removed

Lines of Context:
3
3
AC_INIT([appmenu-gtk], [0.3.91], [crussell@canonical.com])
4
4
AC_COPYRIGHT([Copyright 2010 Canonical])
5
5
AC_CONFIG_SRCDIR([src/bridge.c])
6
 
AC_CONFIG_MACRO_DIR([build/autotools])
 
6
AC_CONFIG_MACRO_DIR([m4])
7
7
 
8
8
AM_CONFIG_HEADER(config.h)
9
9
AM_INIT_AUTOMAKE([1.9])
59
59
AC_SUBST(moduledir)
60
60
AC_SUBST(sessionfile)
61
61
 
 
62
###########################
 
63
# gcov coverage reporting
 
64
###########################
 
65
 
 
66
m4_include([m4/gcov.m4])
 
67
AC_TDD_GCOV
 
68
AM_CONDITIONAL([HAVE_GCOV], [test "x$ac_cv_check_gcov" = xyes])
 
69
AM_CONDITIONAL([HAVE_LCOV], [test "x$ac_cv_check_lcov" = xyes])
 
70
AM_CONDITIONAL([HAVE_GCOVR], [test "x$ac_cv_check_gcovr" = xyes])
 
71
AC_SUBST(COVERAGE_CFLAGS)
 
72
AC_SUBST(COVERAGE_LDFLAGS)
 
73
 
62
74
AC_CONFIG_FILES([
63
75
Makefile
64
76
src/Makefile
76
88
 
77
89
        Prefix:                 $prefix
78
90
        GTK+ API:               $gtk_api
 
91
        Coverage reporting:     $use_gcov
79
92
])
80
93