'scmirroring_test' and 'scmirroring_sink_test' testsuites are included in 'devel' package for convinient testing.
Change-Id: Id7bf03141232a159c229f92402aba8f00336c407
Signed-off-by: Hyunsoo Park <hance.park@samsung.com>
DEPENDS clean
COMMENT "distribution clean"
COMMAND find
- ARGS .
+ ARGS .
-not -name config.cmake -and \(
-name tester.c -or
-name Testing -or
Name: capi-media-screen-mirroring
Summary: A screen mirroring library in Tizen C API
-Version: 0.2.2
+Version: 0.2.3
Release: 0
Group: Multimedia/API
License: Apache-2.0
%description gcov
Collection of files related to Line Coverage. It is teseted as gcov for a screen mirroring library in Tizen native API
%endif
+
+%package tool
+Summary: Test related files for Screen Mirroring library in Tizen native API
+Group: Development/Multimedia
+
+%description tool
+Collection of files related to test of Screen Mirroring. It has test suites of Source and Sink of Screen Mirroring.
+
%prep
%setup -q
-
%build
export CFLAGS+=" -Wextra -Wno-array-bounds"
export CFLAGS+=" -Wno-ignored-qualifiers -Wno-unused-parameter -Wshadow"
%files gcov
%{_datadir}/gcov/obj/*
%endif
+
+%files tool
+%{_bindir}/scmirroring_test
+%{_bindir}/scmirroring_sink_test
MESSAGE("${src_name}")
ADD_EXECUTABLE(${src_name} ${src})
TARGET_LINK_LIBRARIES(${src_name} ${fw_name} ${${fw_test}_LDFLAGS})
+ IF(${src_name} STREQUAL "scmirroring_test")
+ INSTALL(TARGETS ${src_name} DESTINATION ${TZ_SYS_BIN})
+ ENDIF()
ENDFOREACH()
MESSAGE("${src_name}")
ADD_EXECUTABLE(${src_name} ${src})
TARGET_LINK_LIBRARIES(${src_name} ${fw_name} ${${fw_test}_LDFLAGS})
+ IF(${src_name} STREQUAL "scmirroring_sink_test")
+ INSTALL(TARGETS ${src_name} DESTINATION ${TZ_SYS_BIN})
+ ENDIF()
ENDFOREACH()