projects
/
platform
/
core
/
api
/
tone-player.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
17491e4
)
Add gcov environment
54/189454/1
accepted/tizen/unified/20181107.082103
submit/tizen/20181106.060307
author
SeokHoon Lee
<andy.shlee@samsung.com>
Tue, 18 Sep 2018 02:56:23 +0000
(11:56 +0900)
committer
SeokHoon Lee
<andy.shlee@samsung.com>
Tue, 18 Sep 2018 02:56:39 +0000
(11:56 +0900)
Signed-off-by: SeokHoon Lee <andy.shlee@samsung.com>
Change-Id: If2e8115eaaf333d7f6eac215bf1a30d733ab5255
packaging/capi-media-tone-player.spec
patch
|
blob
|
history
diff --git
a/packaging/capi-media-tone-player.spec
b/packaging/capi-media-tone-player.spec
index a47a8dd0dd169abdda6aea267450d9d9934445ed..e7db262dcdfb36787d9727fc0c85dc42bd475522 100755
(executable)
--- a/
packaging/capi-media-tone-player.spec
+++ b/
packaging/capi-media-tone-player.spec
@@
-33,6
+33,13
@@
cp %{SOURCE1001} .
%build
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 . -DFULLVER=%{version} -DMAJORVER=${MAJORVER}