Commit 3c04bf88 authored by Philip Withnall's avatar Philip Withnall
Browse files

build: Use AX_CODE_COVERAGE

Port the existing code coverage support to AX_CODE_COVERAGE. It is now
controlled by --enable-code-coverage, rather than --enable-debug.

https://wiki.gnome.org/Projects/GnomeCommon/Migration
parent ba45cd78
......@@ -29,15 +29,15 @@ src_hitori_CPPFLAGS = \
src_hitori_LDADD = $(GENERAL_LIBS)
src_hitori_CFLAGS = \
$(GENERAL_CFLAGS) \
$(CODE_COVERAGE_CFLAGS) \
$(WARN_CFLAGS) \
$(NULL)
if DEBUG
src_hitori_CFLAGS += \
-fprofile-arcs \
-ftest-coverage \
src_hitori_LDFLAGS = \
$(CODE_COVERAGE_LDFLAGS) \
$(NULL)
endif
# Code coverage
@CODE_COVERAGE_RULES@
# Icons
icon_dir = $(datadir)/icons/hicolor
......
......@@ -19,6 +19,9 @@ GNOME_MAINTAINER_MODE_DEFINES
AC_ARG_ENABLE([debug],AS_HELP_STRING([--enable-debug],[Enable debugging]),[debug=$enableval],[debug=no])
AM_CONDITIONAL([DEBUG],[test "$debug" = "yes"])
# Code coverage
AX_CODE_COVERAGE()
# GResources
AC_PATH_PROG([GLIB_COMPILE_RESOURCES],[glib-compile-resources])
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment