From 2dfed7c0074b79fa48d1252f9ff1e359c40f7e75 Mon Sep 17 00:00:00 2001 From: Jeongmo Yang Date: Mon, 27 Apr 2020 16:35:09 +0900 Subject: [PATCH] Add feature for line coverage measurement [Version] 0.1.199-1 [Profile] Common [Issue Type] Line coverage Change-Id: Icf08978bce1adfc385404cca1eaf9eaafff94752 Signed-off-by: Jeongmo Yang --- packaging/libmm-camcorder.spec | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/packaging/libmm-camcorder.spec b/packaging/libmm-camcorder.spec index 269857a..408e710 100644 --- a/packaging/libmm-camcorder.spec +++ b/packaging/libmm-camcorder.spec @@ -1,7 +1,7 @@ Name: libmm-camcorder Summary: Camera and recorder library Version: 0.10.199 -Release: 0 +Release: 1 Group: Multimedia/Libraries License: Apache-2.0 Source0: %{name}-%{version}.tar.gz @@ -56,6 +56,10 @@ Camera and recorder function supported library for development. %build +%if 0%{?gcov:1} +export CFLAGS+=" -fprofile-arcs -ftest-coverage" +export LDFLAGS+=" -lgcov" +%endif export CFLAGS+=" -D_LARGEFILE64_SOURCE -DGST_USE_UNSTABLE_API -DSYSCONFDIR=\\\"%{_sysconfdir}\\\" -DTZ_SYS_ETC=\\\"%{TZ_SYS_ETC}\\\"" ./autogen.sh %configure \ -- 2.34.1