From 4971799360b5ec7c99f94810f2fa5cb9f80dcebf Mon Sep 17 00:00:00 2001 From: Konstantin Podsvirov Date: Wed, 11 Jan 2017 14:06:00 +0300 Subject: QtIFW: Improved packaging Now cpack_ifw_configure_file command used to configure template files of component's scripts. Now for these template files we can use QtIFW predefined variables (like @VAR@) and template variables in Qt/IFW/SDK/Creator templates style (like %VAR%). Now CMake_INSTALL_INFIX advanced variable used to configure CMake installation destination when package as part of QtSDK. --- CMakeCPack.cmake | 45 ++++++++++++--------- CMakeCPackOptions.cmake.in | 2 +- Packaging/QtSDK/ToolsCMakeXX.cmake | 49 ++++++----------------- Packaging/QtSDK/qt.tools.cmake.xx.qs.in | 12 +++--- Source/QtIFW/CMake.DeveloperReference.HTML.qs.in | 4 +- Source/QtIFW/CMake.Dialogs.QtGUI.qs | 21 ---------- Source/QtIFW/CMake.Dialogs.QtGUI.qs.in | 21 ++++++++++ Source/QtIFW/CMake.Documentation.SphinxHTML.qs.in | 4 +- Source/QtIFW/CMake.qs.in | 10 +++-- Source/QtIFW/installscript.qs.in | 12 +++--- 10 files changed, 84 insertions(+), 96 deletions(-) delete mode 100644 Source/QtIFW/CMake.Dialogs.QtGUI.qs create mode 100644 Source/QtIFW/CMake.Dialogs.QtGUI.qs.in diff --git a/CMakeCPack.cmake b/CMakeCPack.cmake index ba858bd..a0aacb4 100644 --- a/CMakeCPack.cmake +++ b/CMakeCPack.cmake @@ -54,6 +54,9 @@ if(${CPACK_SYSTEM_NAME} MATCHES Windows) endif() endif() +# Command for configure IFW script templates +include(${CMake_SOURCE_DIR}/Modules/CPackIFWConfigureFile.cmake) + # Advanced IFW configuration set(_cpifwrc CPACK_IFW_COMPONENT_GROUP_CMAKE_) set(_cpifwrcconf _CPACK_IFW_COMPONENT_GROUP_CMAKE) @@ -85,8 +88,6 @@ _cmifwarg("Package tag (values: TRUE, FALSE, SCRIPT)" _cmifwarg("Package tag" STRING VERSION "${CMake_VERSION_MAJOR}.${CMake_VERSION_MINOR}.${CMake_VERSION_PATCH}") -_cmifwarg("Package