The target gui not supported does not require gui codes
to be compiled. This patch excludes gui sources from non-gui
tota-ua package.
Change-Id: I4a6930525e9f2836e3e8b52765eeda5dd0ec28bd
Signed-off-by: Sunmin Lee <sunm.lee@samsung.com>
TARGET_LINK_LIBRARIES(${EXECNAME} ${pkgs_LDFLAGS} ${LIBS})
INSTALL(TARGETS ${EXECNAME} DESTINATION ${BINDIR})
+IF(NOT "${FOTA_PARTITION_TYPE}" STREQUAL "PART_RPI3")
INSTALL(DIRECTORY ${CMAKE_SOURCE_DIR}/res/${MODELDIR}/images DESTINATION ${RESDIR})
-# LICENSE file
ADD_SUBDIRECTORY(fota_gui)
-
+ENDIF(NOT "${FOTA_PARTITION_TYPE}" STREQUAL "PART_RPI3")
pushd build_rpi3
%make_install
mv %{buildroot}%{_bindir}/delta.ua %{buildroot}%{_bindir}/delta.ua.rpi3
-mv %{buildroot}%{_datadir}/fota/res/images %{buildroot}%{_datadir}/fota/res/images_rpi3
popd
pushd build_tw1
%post target_rpi3
mv %{_bindir}/delta.ua.rpi3 %{_bindir}/delta.ua
-mv %{_datadir}/fota/res/images_rpi3 %{_datadir}/fota/res/images
%post target_tw1
mv %{_bindir}/delta.ua.tw1 %{_bindir}/delta.ua
%files target_rpi3
%defattr(-,root,root,-)
-%{_datadir}/fota/res/images_rpi3
%{_bindir}/delta.ua.rpi3
%files target_tw1