build: provide easy code coverage measuring

Closes #1528
This commit is contained in:
Daniel Stenberg 2017-06-02 00:59:35 +02:00
parent efc7c1d86f
commit f6e0f4556e
7 changed files with 246 additions and 7 deletions

View file

@ -71,6 +71,10 @@ endif
curl_LDFLAGS = @LIBMETALINK_LDFLAGS@
curl_CPPFLAGS = $(AM_CPPFLAGS) $(LIBMETALINK_CPPFLAGS)
@CODE_COVERAGE_RULES@
curl_LDFLAGS += $(CODE_COVERAGE_LDFLAGS)
CFLAGS += $(CODE_COVERAGE_CFLAGS)
# if unit tests are enabled, build a static library to link them with
if BUILD_UNITTESTS
noinst_LTLIBRARIES = libcurltool.la