Add gcov environment 46/189446/2
authorSeokHoon Lee <andy.shlee@samsung.com>
Tue, 18 Sep 2018 01:28:58 +0000 (10:28 +0900)
committerSeokHoon Lee <andy.shlee@samsung.com>
Tue, 18 Sep 2018 01:35:43 +0000 (10:35 +0900)
Signed-off-by: SeokHoon Lee <andy.shlee@samsung.com>
Change-Id: I0c6d7329d49a8af7cd8a6c77840b2623e6f47fdd

packaging/capi-media-audio-io.spec

index 2cac7c8368b116aa27573429c2be38a7041d0bff..28484c719b824929a2feb7584c4cf177e47f2641 100644 (file)
@@ -41,6 +41,12 @@ An Audio Input & Audio Output library in Tizen Native API (Tool)
 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"