summaryrefslogtreecommitdiffstats
path: root/Source/cmQtAutoGeneratorRcc.cxx
diff options
context:
space:
mode:
authorSebastian Holtermann <sebholt@xwmw.org>2017-11-19 11:22:49 (GMT)
committerSebastian Holtermann <sebholt@xwmw.org>2017-11-19 12:12:42 (GMT)
commitab9d5896ae43789872fca2e83d556912abb60254 (patch)
treed18add395533b65ee0c04c59cf823553a82aaa33 /Source/cmQtAutoGeneratorRcc.cxx
parent2a85b5ac768cde4a9bbe98551528c8bae1e268a8 (diff)
downloadCMake-ab9d5896ae43789872fca2e83d556912abb60254.zip
CMake-ab9d5896ae43789872fca2e83d556912abb60254.tar.gz
CMake-ab9d5896ae43789872fca2e83d556912abb60254.tar.bz2
Autogen: Detect rcc feature once during configuration
We used to detect the `rcc` features before every `rcc` list invocation wich resulted in `rcc` be called twice for every listing operation. Now we detect the `rcc` list capabilities once during configuration and pass it to the cmake_autorcc target in the info file.
Diffstat (limited to 'Source/cmQtAutoGeneratorRcc.cxx')
-rw-r--r--Source/cmQtAutoGeneratorRcc.cxx8
1 files changed, 5 insertions, 3 deletions
diff --git a/Source/cmQtAutoGeneratorRcc.cxx b/Source/cmQtAutoGeneratorRcc.cxx
index 573f04c..3c9f1a8 100644
--- a/Source/cmQtAutoGeneratorRcc.cxx
+++ b/Source/cmQtAutoGeneratorRcc.cxx
@@ -78,8 +78,8 @@ bool cmQtAutoGeneratorRcc::InfoFileRead(cmMakefile* makefile)
this->AutogenBuildDir = InfoGet("ARCC_BUILD_DIR");
// - Qt environment
- this->QtMajorVersion = InfoGet("ARCC_QT_VERSION_MAJOR");
- this->RccExecutable = InfoGet("ARCC_QT_RCC_EXECUTABLE");
+ this->RccExecutable = InfoGet("ARCC_RCC_EXECUTABLE");
+ this->RccListOptions = InfoGetList("ARCC_RCC_LIST_OPTIONS");
// - Job
this->QrcFile = InfoGet("ARCC_SOURCE");
@@ -135,6 +135,8 @@ void cmQtAutoGeneratorRcc::SettingsFileRead(cmMakefile* makefile)
std::string str;
str += this->RccExecutable;
str += sep;
+ str += cmJoin(this->RccListOptions, ";");
+ str += sep;
str += this->QrcFile;
str += sep;
str += this->RccFile;
@@ -307,7 +309,7 @@ bool cmQtAutoGeneratorRcc::RccGenerate()
} else {
// Read input file list from qrc file
std::string error;
- if (cmQtAutoGen::RccListInputs(this->QtMajorVersion, this->RccExecutable,
+ if (cmQtAutoGen::RccListInputs(this->RccExecutable, this->RccListOptions,
this->QrcFile, readFiles, &error)) {
files = &readFiles;
} else {