Add gcov environment 58/189458/1
authorSeokHoon Lee <andy.shlee@samsung.com>
Tue, 18 Sep 2018 04:44:09 +0000 (13:44 +0900)
committerSeokHoon Lee <andy.shlee@samsung.com>
Tue, 18 Sep 2018 04:44:24 +0000 (13:44 +0900)
Signed-off-by: SeokHoon Lee <andy.shlee@samsung.com>
Change-Id: I34d80dc365b953f7f5706151fb908f553a3fb68a

packaging/capi-media-sound-manager.spec

index 9430f4c..00311e8 100644 (file)
@@ -45,6 +45,12 @@ rm include/sound_manager_internal_tv.h
 export CFLAGS+=" -DTIZEN_FEATURE_TV_PROD"
 %endif
 
+%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"