diff options
author | 2017-05-24 16:37:11 +0200 | |
---|---|---|
committer | 2018-10-15 18:22:20 +0200 | |
commit | d35284d1fdee60fba5684efe09b03460f7267284 (patch) | |
tree | 3fafff26a12cda722966a474e436e4422b9d434c /default | |
parent | 5b13f986124d80491f0e3f50a8f85fcc7691ac36 (diff) |
Fix: can't build wgt file
Fix changed icon file name.
Change-Id: I2c8ab65df8ffe245f8f52fc8a147c19e76aa069c
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
Diffstat (limited to 'default')
-rw-r--r-- | default/cmake/common.cmake | 4 |
1 files changed, 2 insertions, 2 deletions
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 |