Add gcov environment 98/189198/2
authorSeokHoon Lee <andy.shlee@samsung.com>
Fri, 14 Sep 2018 06:39:22 +0000 (15:39 +0900)
committerSeokHoon Lee <andy.shlee@samsung.com>
Thu, 4 Oct 2018 00:38:53 +0000 (09:38 +0900)
- delete unused define.

Signed-off-by: SeokHoon Lee <andy.shlee@samsung.com>
Change-Id: I923e47cf74ff10692f65a8a4ff7188d64d6e7168

CMakeLists.txt
packaging/capi-media-streamrecorder.spec

index 1876fec..d915d94 100644 (file)
@@ -49,14 +49,9 @@ IF("${ARCH}" STREQUAL "arm")
 ENDIF("${ARCH}" STREQUAL "arm")
 
 ADD_DEFINITIONS("-DPREFIX=\"${CMAKE_INSTALL_PREFIX}\"")
-ADD_DEFINITIONS("-DTIZEN_DEBUG")
 
 SET(CMAKE_EXE_LINKER_FLAGS "-Wl,--as-needed -Wl,--rpath=${LIB_INSTALL_DIR}")
 
-IF(BUILD_GCOV)
-       ADD_DEFINITIONS("-DTIZEN_TEST_GCOV")
-ENDIF(BUILD_GCOV)
-
 aux_source_directory(src SOURCES)
 ADD_LIBRARY(${fw_name} SHARED ${SOURCES})
 
index ec8acc9..9018c1a 100644 (file)
@@ -13,9 +13,6 @@ BuildRequires:  pkgconfig(capi-media-tool)
 BuildRequires:  pkgconfig(libtbm)
 Requires(post): /sbin/ldconfig
 Requires(postun): /sbin/ldconfig
-%if 0%{?gcov:1}
-BuildRequires: lcov
-%endif
 
 %description
 A StreamRecorder library in Tizen Native API to record live buffer sent by the application
@@ -43,8 +40,7 @@ export LDFLAGS+=" -lgcov"
 %endif
 
 MAJORVER=`echo %{version} | awk 'BEGIN {FS="."}{print $1}'`
-%cmake . -DCMAKE_INSTALL_PREFIX=%{_prefix} -DFULLVER=%{version} -DMAJORVER=${MAJORVER} \
-       -DBUILD_GCOV=%{?gcov:1}%{!?gcov:0}
+%cmake . -DCMAKE_INSTALL_PREFIX=%{_prefix} -DFULLVER=%{version} -DMAJORVER=${MAJORVER}
 
 
 make %{?jobs:-j%jobs}