From: Seungbae Shin Date: Wed, 18 Jan 2017 06:36:21 +0000 (+0900) Subject: Do not install testsuite on TV product X-Git-Tag: accepted/tizen/3.0/common/20170331.152206^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F18%2F110818%2F2;p=platform%2Fcore%2Fapi%2Fwav-player.git Do not install testsuite on TV product [Version] 0.1.25 [Profile] Common [Issue Type] Product Change-Id: I68344cd67715693c9ef41ee20ad9e235c608ef13 --- diff --git a/CMakeLists.txt b/CMakeLists.txt index 13ebcaa..b8ab841 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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 diff --git a/packaging/capi-media-wav-player.spec b/packaging/capi-media-wav-player.spec index 2105807..2e600eb 100755 --- a/packaging/capi-media-wav-player.spec +++ b/packaging/capi-media-wav-player.spec @@ -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