diff options
author | Sebastian Holtermann <sebholt@xwmw.org> | 2017-11-16 14:17:14 (GMT) |
---|---|---|
committer | Sebastian Holtermann <sebholt@xwmw.org> | 2017-11-19 11:51:30 (GMT) |
commit | a87f82e0258148f3047a3487c832a569dd841e09 (patch) | |
tree | 76af6bf434364b293353a955880e6bcff0e0efa9 /Modules | |
parent | b2a0b549bb9fea678517a52caf333eae009901dd (diff) | |
download | CMake-a87f82e0258148f3047a3487c832a569dd841e09.zip CMake-a87f82e0258148f3047a3487c832a569dd841e09.tar.gz CMake-a87f82e0258148f3047a3487c832a569dd841e09.tar.bz2 |
Autogen: Switch to use custom commands for RCC
Instead of processing all `rcc` invocation requests in the
_autogen target that calls `cmake -E cmake_autogen ...` once,
use a dedicated custom command that calls
`cmake -E cmake_autorcc ...` for each `.qrc` file.
This allows parallel `.qrc` file processing and reduces the
workload (and complexity) in the _autogen target.
If only `AUTORCC` is enabled, the _autogen target won't be created
at all since it is now used for `AUTOMOC` and `AUTOUIC` only.
For `.qrc` files that are GENERATED a custom target is used
instead of a custom command.
Closes #17161
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/AutoRccInfo.cmake.in | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/Modules/AutoRccInfo.cmake.in b/Modules/AutoRccInfo.cmake.in new file mode 100644 index 0000000..7b13b9e --- /dev/null +++ b/Modules/AutoRccInfo.cmake.in @@ -0,0 +1,11 @@ +# Meta +set(ARCC_MULTI_CONFIG @_multi_config@) +# Directories and files +set(ARCC_CMAKE_BINARY_DIR "@CMAKE_BINARY_DIR@/") +set(ARCC_CMAKE_SOURCE_DIR "@CMAKE_SOURCE_DIR@/") +set(ARCC_CMAKE_CURRENT_SOURCE_DIR "@CMAKE_CURRENT_SOURCE_DIR@/") +set(ARCC_CMAKE_CURRENT_BINARY_DIR "@CMAKE_CURRENT_BINARY_DIR@/") +set(ARCC_BUILD_DIR @_build_dir@) +# Qt environment +set(ARCC_QT_VERSION_MAJOR @_qt_version_major@) +set(ARCC_QT_RCC_EXECUTABLE @_qt_rcc_executable@) |