summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRomain Forlot <romain.forlot@iot.bzh>2017-05-24 15:12:22 +0200
committerRomain Forlot <romain.forlot@iot.bzh>2018-10-15 18:22:20 +0200
commit346504f55854caf975ec43ec67447e7c9560135e (patch)
tree04d5dc63a02e915d4651fc8eb147b7c2e44b91d6
parent20316f8d9eadc8c16430ed085b5433a67549dbc1 (diff)
Separate directory to put package build files.
Templated files config.xml.in and config.spec.in are configured to be used by wgt and rpm packager software. Change-Id: Id7fbd7822acb4d0f187d9d9b8d1682ee7ef0cc33 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
-rw-r--r--default/cmake/common.cmake2
1 files changed, 2 insertions, 0 deletions
diff --git a/default/cmake/common.cmake b/default/cmake/common.cmake
index e1ed51b..1d2974e 100644
--- a/default/cmake/common.cmake
+++ b/default/cmake/common.cmake
@@ -212,6 +212,7 @@ macro(rpm_package_build)
# build rpm spec file from template
configure_file(${TEMPLATE_RPM_DIR}/config.spec.in ${PROJECT_PKG_BUILD_DIR}/config.spec)
+ configure_file(${TEMPLATE_RPM_DIR}/config.xml.in ${PROJECT_PKG_ENTRY_POINT}/config.xml)
add_custom_command(OUTPUT ${PROJECT_NAME}.spec
DEPENDS ${PROJECT_TARGETS}
@@ -336,6 +337,7 @@ if(PACKAGE_PREFIX)
else()
set(PROJECT_PKG_BUILD_DIR ${CMAKE_CURRENT_BINARY_DIR}/package CACHE PATH "Where the package will be built")
endif()
+set(PROJECT_PKG_ENTRY_POINT ${CMAKE_SOURCE_DIR}/packaging CACHE PATH "Where package build files, like rpm.spec file or config.xml, are write.")
set (PKG_TEMPLATE_PREFIX ${CMAKE_SOURCE_DIR}/etc CACHE PATH "Default Package Templates Directory")
set(TEMPLATE_WGT_DIR "${CMAKE_SOURCE_DIR}/conf.d/app-templates/wgt" CACHE PATH "Subpath to a directory where are stored needed files to build widget")