diff options
author | Romain Forlot <romain.forlot@iot.bzh> | 2017-05-24 15:12:22 +0200 |
---|---|---|
committer | Romain Forlot <romain.forlot@iot.bzh> | 2017-05-24 15:12:22 +0200 |
commit | af1f814a957509143e2076d2375b9adc357fec37 (patch) | |
tree | c99a89e27703425fc360af25f3b9ff83b1be1fc0 /default/cmake/common.cmake | |
parent | 49a8bc0e3d6407a52d3c30e69fa899291c5d9631 (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>
Diffstat (limited to 'default/cmake/common.cmake')
-rw-r--r-- | default/cmake/common.cmake | 2 |
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") |