From d9953a56c9e611215e6f06915b8176a165a1da7d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc-Andr=C3=A9=20Lureau?= Date: Mon, 23 Feb 2015 18:52:40 +0100 Subject: [PATCH] build-sys: add coverage --- Makefile.am | 2 ++ configure.ac | 1 + src/Makefile.am | 8 ++++++-- 3 files changed, 9 insertions(+), 2 deletions(-) diff --git a/Makefile.am b/Makefile.am index 51ddddb..378f8e1 100644 --- a/Makefile.am +++ b/Makefile.am @@ -26,3 +26,5 @@ pkgconfig_DATA = virglrenderer.pc EXTRA_DIST = \ virglrenderer.pc.in + +@CODE_COVERAGE_RULES@ diff --git a/configure.ac b/configure.ac index 9b1c58d..a8152a5 100644 --- a/configure.ac +++ b/configure.ac @@ -22,6 +22,7 @@ m4_ifdef([AM_PROG_AR], [AM_PROG_AR]) AC_DISABLE_STATIC AC_PROG_LIBTOOL AC_SYS_LARGEFILE +AX_CODE_COVERAGE AC_ARG_ENABLE(tests, AS_HELP_STRING([--enable-tests], [Build the tests (default=auto)]), diff --git a/src/Makefile.am b/src/Makefile.am index 9d5fd32..9d4178b 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -1,5 +1,8 @@ SUBDIRS := gallium/auxiliary -AM_LDFLAGS = $(EPOXY_LIBS) $(GL_LIBS) -lgbm -lm -ldl -I./gallium/include +AM_LDFLAGS = -lgbm -lm -ldl -I./gallium/include \ + $(EPOXY_LIBS) \ + $(GL_LIBS) \ + $(CODE_COVERAGE_LDFLAGS) AM_CFLAGS = \ -I$(top_srcdir)/src/gallium/drivers/virgl \ @@ -11,7 +14,8 @@ AM_CFLAGS = \ $(PIC_FLAGS) \ $(LIBDRM_CFLAGS) \ $(EPOXY_CFLAGS) \ - $(VISIBILITY_CFLAGS) + $(VISIBILITY_CFLAGS) \ + $(CODE_COVERAGE_CFLAGS) libvrend_la_SOURCES = \ vrend_renderer.c \