mirror of
https://gitlab.freedesktop.org/dbus/dbus.git
synced 2025-12-29 16:00:12 +01:00
DBus uses custom rules in its Makefiles to implement test-coverage statistics. This patch implements test-coverage statistics with the autoconf macro AX_CODE_COVERAGE. The script automatically tests for tools (e.g., gcov, lcov), sets build variables and creates Makefile rules. Run 'configure' with '--enable-code-coverage' to enable support for test-coverage statistics. Run 'make check-code-coverage' to run the tests and generate the statistics. Signed-off-by: Thomas Zimmermann <tdz@users.sourceforge.net> [smcv: do not alter compiler.m4; move AM_CXXFLAGS to the one place we compile C++] Reviewed-by: Simon McVittie <simon.mcvittie@collabora.co.uk> Bug: https://bugs.freedesktop.org/show_bug.cgi?id=88922
37 lines
778 B
Makefile
37 lines
778 B
Makefile
SUBDIRS=dbus bus tools test doc
|
|
|
|
pkgconfigdir = $(libdir)/pkgconfig
|
|
pkgconfig_DATA = dbus-1.pc
|
|
|
|
DISTCLEANFILES = \
|
|
dbus-1.pc
|
|
|
|
EXTRA_DIST = \
|
|
autogen.sh \
|
|
HACKING \
|
|
dbus-1.pc.in \
|
|
cleanup-man-pages.sh \
|
|
ChangeLog.pre-1-0 \
|
|
NEWS.pre-1-0 \
|
|
ChangeLog.pre-1-2 \
|
|
NEWS.pre-1-2 \
|
|
README.valgrind \
|
|
README.win \
|
|
README.wince \
|
|
README.cygwin \
|
|
README.launchd \
|
|
cmake
|
|
|
|
all-local: Doxyfile
|
|
|
|
update-authors:
|
|
git shortlog -s -e | cut -c 8- | sort > AUTHORS
|
|
|
|
DISTCHECK_CONFIGURE_FLAGS = \
|
|
--enable-xml-docs \
|
|
--with-systemdsystemunitdir=$$dc_install_base/$(systemdsystemunitdir)
|
|
|
|
ACLOCAL_AMFLAGS = -I m4 ${ACLOCAL_FLAGS}
|
|
|
|
# Add rules for code-coverage testing, as defined by AX_CODE_COVERAGE
|
|
@CODE_COVERAGE_RULES@
|