FIND_PACKAGE(PkgConfig REQUIRED)
+option(TESTS "enable/disable universal switch tests" ON)
+
pkg_check_modules(pkgs REQUIRED
capi-appfw-service-application
capi-appfw-application
INSTALL(FILES org.tizen.universal-switch.xml DESTINATION ${TZ_SYS_RO_PACKAGES})
ADD_SUBDIRECTORY(src)
-ADD_SUBDIRECTORY(tests)
+if(TESTS)
+ ADD_SUBDIRECTORY(tests)
+endif()
+%bcond_without tests
+
Name: org.tizen.universal-switch
Summary: Universal Switch Assistive Technology
Version: 0.0.1
BuildRequires: net-config
%description
-An utility library for developers of the menu screen.
-
-
-%package tests
-Summary: Universal Switch Assistive Technology - tests
-
-%description tests
-Universal Switch tests
-
+Assistive technology client for users with dexterity disability.
%prep
%setup -q
%define DataDir %{?TZ_SYS_RO_SHARE:%TZ_SYS_RO_SHARE}%{!?TZ_SYS_RO_SHARE:/usr/share}
%define AppDir %{TZ_SYS_RO_APP}/%{name}
-rm -rf CMakeFiles CMakeCache.txt
cmake . -DCMAKE_INSTALL_PREFIX="%{AppDir}" \
-DTZ_SYS_RO_PACKAGES=%{TZ_SYS_RO_PACKAGES} \
+%if !%{with tests}
+ -DTESTS=OFF
+%endif
make %{?jobs:-j%jobs}
%{DataDir}/packages/%{name}.xml
+%if %{with tests}
+%package tests
+Summary: Universal Switch Assistive Technology - tests
+
+%description tests
+Universal Switch tests
+
%post tests
%{AppDir}/tests/VConfImplTests_init.sh
%files tests
%{AppDir}/tests/*
%license LICENSE
+%endif