summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJose Bollo <jose.bollo@iot.bzh>2018-12-14 14:43:25 +0100
committerRomain Forlot <romain.forlot@iot.bzh>2018-12-17 15:29:59 +0000
commitd07e9a1f6e816f4a567a72ffe6d12f55110b025d (patch)
tree691d4fa205dbcc28721105c38f6468d6100674d4
parent3987620f67a6a7f4ae49c4e90711f963ec4aaf12 (diff)
Add option to preserve links during copy
Links are probably expected when it exists. Change-Id: I9df5776e2e74b3d669da61ea8d978f1fc80df34b Signed-off-by: Jose Bollo <jose.bollo@iot.bzh>
-rw-r--r--src/cmake/cmake.d/03-macros.cmake10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/cmake/cmake.d/03-macros.cmake b/src/cmake/cmake.d/03-macros.cmake
index 6aad674..2d961a4 100644
--- a/src/cmake/cmake.d/03-macros.cmake
+++ b/src/cmake/cmake.d/03-macros.cmake
@@ -241,7 +241,7 @@ macro(add_input_files INPUT_FILES)
DEPENDS ${INPUT_FILES}
COMMAND mkdir -p ${CMAKE_CURRENT_BINARY_DIR}/${TARGET_NAME}
COMMAND touch ${CMAKE_CURRENT_BINARY_DIR}/${TARGET_NAME}
- COMMAND cp -r ${INPUT_FILES} ${CMAKE_CURRENT_BINARY_DIR}/${TARGET_NAME}
+ COMMAND cp -dr ${INPUT_FILES} ${CMAKE_CURRENT_BINARY_DIR}/${TARGET_NAME}
)
endmacro()
@@ -257,7 +257,7 @@ macro(generate_one_populate_target OUTPUTFILES PKG_DESTDIR)
DEPENDS ${BD}/${OUTPUTFILES}
COMMAND mkdir -p ${PKG_DESTDIR}
COMMAND touch ${PKG_DESTDIR}
- COMMAND cp -r ${BD}/${OUTPUTFILES}/* ${PKG_DESTDIR} 2> /dev/null || cp ${BD}/${OUTPUTFILES} ${PKG_DESTDIR}
+ COMMAND cp -dr ${BD}/${OUTPUTFILES}/* ${PKG_DESTDIR} 2> /dev/null || cp -d ${BD}/${OUTPUTFILES} ${PKG_DESTDIR}
)
add_custom_target(${POPULE_PACKAGE_TARGET} DEPENDS ${PKG_DESTDIR}/${OUTPUTFILES})
@@ -590,15 +590,15 @@ You need a config.xml template: please specify WIDGET_CONFIG_TEMPLATE correctly.
COMMAND ${CMAKE_COMMAND} -DINFILE=${WIDGET_CONFIG_TEMPLATE} -DOUTFILE=${PROJECT_PKG_BUILD_DIR}/config.xml
-DPROJECT_BINARY_DIR=${CMAKE_CURRENT_BINARY_DIR}
-P ${PROJECT_APP_TEMPLATES_DIR}/cmake/configure_file.cmake
- COMMAND cp ${ICON_PATH} ${PROJECT_PKG_BUILD_DIR}/${PROJECT_ICON}
+ COMMAND cp -d ${ICON_PATH} ${PROJECT_PKG_BUILD_DIR}/${PROJECT_ICON}
)
add_custom_command(OUTPUT ${PROJECT_PKG_TEST_DIR}/config.xml ${PROJECT_PKG_TEST_DIR}/bin/launcher
COMMAND ${CMAKE_COMMAND} -DINFILE=${TEST_WIDGET_CONFIG_TEMPLATE} -DOUTFILE=${PROJECT_PKG_TEST_DIR}/config.xml
-DPROJECT_BINARY_DIR=${CMAKE_CURRENT_BINARY_DIR}
-P ${PROJECT_APP_TEMPLATES_DIR}/cmake/configure_file.cmake
COMMAND mkdir -p ${PROJECT_PKG_TEST_DIR}/bin
- COMMAND cp ${ICON_PATH} ${PROJECT_PKG_TEST_DIR}/${PROJECT_ICON}
- COMMAND cp ${PROJECT_APP_TEMPLATES_DIR}/test-wgt/launcher.sh.in ${PROJECT_PKG_TEST_DIR}/bin/launcher
+ COMMAND cp -d ${ICON_PATH} ${PROJECT_PKG_TEST_DIR}/${PROJECT_ICON}
+ COMMAND cp -d ${PROJECT_APP_TEMPLATES_DIR}/test-wgt/launcher.sh.in ${PROJECT_PKG_TEST_DIR}/bin/launcher
)
add_custom_command(OUTPUT ${WGT_NAME}.wgt