From: Sangchul Lee Date: Tue, 30 Aug 2022 02:31:56 +0000 (+0900) Subject: spec: Exclude headless test package when tizen_espp_render option is set X-Git-Tag: submit/tizen/20220901.010928~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=3b34df5ae00ed710837caeef56914c0a2bd1c03d;p=platform%2Fcore%2Fapi%2Fwebrtc.git spec: Exclude headless test package when tizen_espp_render option is set Before this patch, when using 'tizen_espp_render' option, a build error regarding webrtc_test_headless occurs. It is fixed now. [Version] 0.3.217 [Issue Type] Bug fix / packaging Change-Id: I5c242fcdddbd60e042bcbd00358c5204dd2774e3 Signed-off-by: Sangchul Lee --- diff --git a/packaging/capi-media-webrtc.spec b/packaging/capi-media-webrtc.spec index 39f56322..d7a86f57 100644 --- a/packaging/capi-media-webrtc.spec +++ b/packaging/capi-media-webrtc.spec @@ -1,6 +1,6 @@ Name: capi-media-webrtc Summary: A WebRTC library in Tizen Native API -Version: 0.3.216 +Version: 0.3.217 Release: 0 Group: Multimedia/API License: Apache-2.0 @@ -60,6 +60,9 @@ Requires: %{name} = %{version}-%{release} %description test Testsuite of Tizen Native WebRTC API. +%if "%{test_espp_render}" == "1" +#not including webrtc-test-headless with this condition +%else %package test-headless Summary: Testsuite of Tizen Native WebRTC API (For headless target) Group: Multimedia/Development @@ -67,6 +70,7 @@ Requires: %{name} = %{version}-%{release} %description test-headless Testsuite of Tizen Native WebRTC API for headless target. +%endif %if 0%{?gcov:1} %package gcov @@ -148,10 +152,14 @@ find . -name '*.gcno' -exec cp --parents '{}' "$gcno_obj_dir" ';' %{_bindir}/webrtc_test %license LICENSE.APLv2 +%if "%{test_espp_render}" == "1" +#not including webrtc_test_headless with this condition +%else %files test-headless %manifest %{name}-test-headless.manifest %{_bindir}/webrtc_test_headless %license LICENSE.APLv2 +%endif %if 0%{?gcov:1} %files gcov diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index bcbe7458..e6e63543 100644 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -43,6 +43,7 @@ INSTALL(TARGETS ${test_name} DESTINATION bin) #For headless test binary +IF(NOT TIZEN_FEATURE_ESPP) SET(fw_test_headless "${fw_name}-test-headless") SET(test_name_headless "webrtc_test_headless") @@ -69,4 +70,4 @@ ENDFOREACH() ADD_EXECUTABLE(${test_name_headless} ${src_list_headless}) TARGET_LINK_LIBRARIES(${test_name_headless} capi-media-webrtc ${${fw_test_headless}_LDFLAGS}) INSTALL(TARGETS ${test_name_headless} DESTINATION bin) - +endif()