Do not install testsuite on TV product 18/110818/2 accepted/tizen_3.0_common accepted/tizen_3.0_ivi accepted/tizen_3.0_mobile accepted/tizen_3.0_tv accepted/tizen_3.0_wearable tizen_3.0 accepted/tizen/3.0/common/20170331.152206 accepted/tizen/3.0/ivi/20170331.044321 accepted/tizen/3.0/mobile/20170331.044112 accepted/tizen/3.0/tv/20170331.044210 accepted/tizen/3.0/wearable/20170331.044245 submit/tizen_3.0/20170330.091154
authorSeungbae Shin <seungbae.shin@samsung.com>
Wed, 18 Jan 2017 06:36:21 +0000 (15:36 +0900)
committerSeungbae Shin <seungbae.shin@samsung.com>
Wed, 18 Jan 2017 06:38:11 +0000 (15:38 +0900)
[Version] 0.1.25
[Profile] Common
[Issue Type] Product

Change-Id: I68344cd67715693c9ef41ee20ad9e235c608ef13

CMakeLists.txt
packaging/capi-media-wav-player.spec

index 13ebcaa..b8ab841 100644 (file)
@@ -87,16 +87,18 @@ CONFIGURE_FILE(
 )
 INSTALL(FILES ${CMAKE_CURRENT_SOURCE_DIR}/${fw_name}.pc DESTINATION ${LIB_INSTALL_DIR}/pkgconfig)
 
+IF(TIZEN_FEATURE_TESTSUITE)
 ADD_SUBDIRECTORY(test)
+ENDIF(TIZEN_FEATURE_TESTSUITE)
 
 IF(UNIX)
 
 ADD_CUSTOM_TARGET (distclean @echo cleaning for source distribution)
 ADD_CUSTOM_COMMAND(
-        DEPENDS clean 
+        DEPENDS clean
         COMMENT "distribution clean"
         COMMAND find
-        ARGS    . 
+        ARGS    .
         -not -name config.cmake -and \(
         -name tester.c -or
         -name Testing -or
index 2105807..2e600eb 100755 (executable)
@@ -1,6 +1,6 @@
 Name:       capi-media-wav-player
 Summary:    A wav player library in Tizen C API
-Version:    0.1.24
+Version:    0.1.25
 Release:    0
 Group:      Multimedia/API
 License:    Apache-2.0
@@ -29,7 +29,12 @@ cp %{SOURCE1001} .
 
 %build
 MAJORVER=`echo %{version} | awk 'BEGIN {FS="."}{print $1}'`
-%cmake . -DFULLVER=%{version} -DMAJORVER=${MAJORVER}
+%cmake . -DFULLVER=%{version} -DMAJORVER=${MAJORVER} \
+%if "%{TIZEN_PRODUCT_TV}" != "1"
+    -DTIZEN_FEATURE_TESTSUITE=On
+%else
+    -DTIZEN_FEATURE_TESTSUITE=Off
+%endif
 %__make %{?jobs:-j%jobs}
 
 %install
@@ -43,7 +48,9 @@ MAJORVER=`echo %{version} | awk 'BEGIN {FS="."}{print $1}'`
 %manifest %{name}.manifest
 %license LICENSE.APLv2
 %{_libdir}/libcapi-media-wav-player.so.*
+%if "%{TIZEN_PRODUCT_TV}" != "1"
 %{_bindir}/wav_player_test
+%endif
 
 %files devel
 %manifest %{name}.manifest