spec: Exclude headless test package when tizen_espp_render option is set 24/280424/2
authorSangchul Lee <sc11.lee@samsung.com>
Tue, 30 Aug 2022 02:31:56 +0000 (11:31 +0900)
committerSangchul Lee <sc11.lee@samsung.com>
Tue, 30 Aug 2022 03:11:26 +0000 (12:11 +0900)
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 <sc11.lee@samsung.com>
packaging/capi-media-webrtc.spec
test/CMakeLists.txt

index 39f5632269485c7f27cd1615e41828a4abc6f867..d7a86f57f1a016060c1e579d59a69468a668d37c 100644 (file)
@@ -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
index bcbe7458f2643a3199bb4e46c2247a67b1e20d2a..e6e63543e6871a1f88a0d6870d1b79462064f82e 100644 (file)
@@ -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()