X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=default%2Fcmake%2Fcommon.cmake;h=78a0af9a3df80d72b20443c3904851039887fe01;hb=1a3d7bb1dd24ab625019aec2d3d62b02a7f60d13;hp=05a3236ed2e5b7007f60f2c1c13444493eb5f85f;hpb=bd37e33352242ebbc3278e3d6683bf07df0f6649;p=apps%2Fapp-templates.git diff --git a/default/cmake/common.cmake b/default/cmake/common.cmake index 05a3236..78a0af9 100644 --- a/default/cmake/common.cmake +++ b/default/cmake/common.cmake @@ -167,14 +167,14 @@ macro(remote_targets_populate) endmacro(remote_targets_populate) macro(wgt_package_build) - if(NOT EXISTS ${TEMPLATE_WGT_DIR}/config.xml.in OR NOT EXISTS ${TEMPLATE_WGT_DIR}/${PROJECT_ICON}) + if(NOT EXISTS ${TEMPLATE_WGT_DIR}/config.xml.in OR NOT EXISTS ${TEMPLATE_WGT_DIR}/icon-default.png) MESSAGE(SEND_ERROR "${Red}WARNING ! Missing mandatory files to build widget file.\nYou need config.xml.in and ${PROJECT_ICON} files in ${TEMPLATE_WGT_DIR} folder.${ColourReset}") else() # Build widget spec file from template only once (Fulup good idea or should depend on time ????) if(NOT EXISTS ${TEMPLATE_WGT_DIR}/config.xml.in OR NOT EXISTS ${TEMPLATE_WGT_DIR}/${PROJECT_ICON}) configure_file(${TEMPLATE_WGT_DIR}/config.xml.in ${PROJECT_PKG_BUILD_DIR}/config.xml) configure_file(${TEMPLATE_WGT_DIR}/config.xml.in ${PROJECT_PKG_ENTRY_POINT}/config.xml) - file(COPY ${TEMPLATE_WGT_DIR}/${PROJECT_ICON} DESTINATION ${PROJECT_PKG_BUILD_DIR}/${PROJECT_ICON}) + file(COPY ${TEMPLATE_WGT_DIR}/icon-default.png DESTINATION ${PROJECT_PKG_BUILD_DIR}/${PROJECT_ICON}) endif(NOT EXISTS ${TEMPLATE_WGT_DIR}/config.xml.in OR NOT EXISTS ${TEMPLATE_WGT_DIR}/${PROJECT_ICON}) # Fulup ??? copy any extra file in wgt/etc into populate package before building the widget