Add gcov environment 53/189453/1 accepted/tizen/unified/20181107.082049 submit/tizen/20181106.060307
authorSeokHoon Lee <andy.shlee@samsung.com>
Tue, 18 Sep 2018 02:55:14 +0000 (11:55 +0900)
committerSeokHoon Lee <andy.shlee@samsung.com>
Tue, 18 Sep 2018 02:55:27 +0000 (11:55 +0900)
Signed-off-by: SeokHoon Lee <andy.shlee@samsung.com>
Change-Id: I815e51bc8c51858ecc581b769685f62320f98621

packaging/capi-media-wav-player.spec

index e443d2b..d7016ae 100755 (executable)
@@ -28,6 +28,12 @@ Requires: %{name} = %{version}-%{release}
 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"