Add gcov environment 02/189702/1 accepted/tizen/5.0/unified/20181102.013119 accepted/tizen/unified/20180921.143109 submit/tizen/20180921.014536 submit/tizen_5.0/20181101.000002
authorSeokHoon Lee <andy.shlee@samsung.com>
Thu, 20 Sep 2018 02:56:25 +0000 (11:56 +0900)
committerSeokHoon Lee <andy.shlee@samsung.com>
Thu, 20 Sep 2018 02:56:42 +0000 (11:56 +0900)
Signed-off-by: SeokHoon Lee <andy.shlee@samsung.com>
Change-Id: I61d6ef7e0a94724303be7a7b8788ad4b272eba33

packaging/capi-content-media-content.spec

index 7c27245..70c81a4 100755 (executable)
@@ -35,6 +35,12 @@ A Media content library in Tizen Native API. (Development file included)
 cp %{SOURCE1001} .
 
 %build
+%if 0%{?gcov:1}
+export CFLAGS+=" -fprofile-arcs -ftest-coverage"
+export CXXFLAGS+=" -fprofile-arcs -ftest-coverage"
+export LDFLAGS+=" -lgcov"
+%endif
+
 MAJORVER=`echo %{version} | awk 'BEGIN {FS="."}{print $1}'`
 %cmake . -DFULLVER=%{version} -DMAJORVER=${MAJORVER} \
 %if "%{tizen_profile_name}" == "tv"