[0.2.126] add line coverage option 68/232068/1 accepted/tizen/unified/20200529.124308 submit/tizen/20200528.064856
authorEunhye Choi <eunhae1.choi@samsung.com>
Tue, 28 Apr 2020 05:33:48 +0000 (14:33 +0900)
committerEunhye Choi <eunhae1.choi@samsung.com>
Tue, 28 Apr 2020 05:33:48 +0000 (14:33 +0900)
Change-Id: I792ddcdbe8478757772c3b89683e88c0eb3090e0

packaging/mmsvc-player.spec

index e7a94c1..fc69b85 100644 (file)
@@ -1,6 +1,6 @@
 Name:       mmsvc-player
 Summary:    A Media Player module for muse server
-Version:    0.2.125
+Version:    0.2.126
 Release:    0
 Group:      Multimedia/Libraries
 License:    Apache-2.0
@@ -50,6 +50,12 @@ export FFLAGS="$FFLAGS -DTIZEN_DEBUG_ENABLE"
 export CFLAGS+=" -DTIZEN_FEATURE_ASM"
 MAJORVER=`echo %{version} | awk 'BEGIN {FS="."}{print $1}'`
 
+%if 0%{?gcov:1}
+export CFLAGS+=" -fprofile-arcs -ftest-coverage"
+export CXXFLAGS+=" -fprofile-arcs -ftest-coverage"
+export LDFLAGS+=" -lgcov"
+%endif
+
 %cmake . \
        -DCMAKE_INSTALL_PREFIX=%{_prefix} \
        -DFULLVER=%{version} \