Add some logic to add "-debug" in the name of the debug widget file
to match the behavior of widget builds that use the cmake app
template.
Bug-AGL: SPEC-2049, SPEC-3300
Signed-off-by: Scott Murray <scott.murray@konsulko.com>
Change-Id: I4cd6930835f8363ff4e7152a3537772735559a06
# AGL binding
configure_file(config.xml.in config.xml)
+if("${CMAKE_BUILD_TYPE}" MATCHES "[Dd][Ee][Bb][Uu][Gg]")
+ set (WGT_SUFFIX "-debug")
+else()
+ set (WGT_SUFFIX "")
+endif()
+
add_custom_command(
OUTPUT poi.wgt
DEPENDS yelp-client
COMMAND cp config.xml package/root/
COMMAND cp ${CMAKE_CURRENT_SOURCE_DIR}/HMI_AppLauncher_POI_Active-01.png package/root/icon.png
COMMAND cp yelp-client package/root/poi
- COMMAND wgtpkg-pack -f -o package/poi.wgt package/root
- COMMAND cp package/poi.wgt .
+ COMMAND wgtpkg-pack -f -o package/poi${WGT_SUFFIX}.wgt package/root
+ COMMAND cp package/poi${WGT_SUFFIX}.wgt .
)
add_custom_target(widget ALL DEPENDS poi.wgt)