summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSeokHoon Lee <andy.shlee@samsung.com>2018-09-17 13:21:26 +0900
committerhj kim <backto.kim@samsung.com>2018-09-17 05:03:12 +0000
commitdc147801a475fc2a7a866014737ff9c4a0ddaaf2 (patch)
treecd843d8dfb18476b907698bab21a9bf1187d718a
parent1b6a93c0cab28b1f9ffce20353ff750877bdec19 (diff)
downloadmedia-controller-dc147801a475fc2a7a866014737ff9c4a0ddaaf2.tar.gz
media-controller-dc147801a475fc2a7a866014737ff9c4a0ddaaf2.tar.bz2
media-controller-dc147801a475fc2a7a866014737ff9c4a0ddaaf2.zip
Add gcov environmentsubmit/tizen/20180917.050334
Signed-off-by: SeokHoon Lee <andy.shlee@samsung.com> Change-Id: I0545788a4a00216ca1c4103497f2b58fec6f55f9
-rwxr-xr-xpackaging/capi-media-controller.spec7
1 files changed, 7 insertions, 0 deletions
diff --git a/packaging/capi-media-controller.spec b/packaging/capi-media-controller.spec
index 7eb7c92..b982c2b 100755
--- a/packaging/capi-media-controller.spec
+++ b/packaging/capi-media-controller.spec
@@ -52,6 +52,13 @@ export CFLAGS+=" -Wextra -Wno-array-bounds"
export CFLAGS+=" -Wno-ignored-qualifiers -Wno-unused-parameter -Wshadow"
export CFLAGS+=" -Wwrite-strings -Wswitch-default"
export CFLAGS+=" -DGST_EXT_TIME_ANALYSIS -include stdint.h"
+%if 0%{?gcov:1}
+export CFLAGS+=" -fprofile-arcs -ftest-coverage"
+export CXXFLAGS+=" -fprofile-arcs -ftest-coverage"
+export FFLAGS+=" -fprofile-arcs -ftest-coverage"
+export LDFLAGS+=" -lgcov"
+%endif
+
MAJORVER=`echo %{version} | awk 'BEGIN {FS="."}{print $1}'`
%cmake . -DFULLVER=%{version} -DMAJORVER=${MAJORVER}