diff options
author | Sebastian Holtermann <sebholt@xwmw.org> | 2017-01-11 14:12:41 (GMT) |
---|---|---|
committer | Sebastian Holtermann <sebholt@xwmw.org> | 2017-01-12 23:00:44 (GMT) |
commit | 2b400b242101fd8b7a46073412830278aa3cc9ec (patch) | |
tree | dbcf67c8b7b32455d2f9f90a63f573dd72fcb455 /Source/cmQtAutoGenerators.cxx | |
parent | edf0b8a52bd4db8557adaf11d7096f7982c373aa (diff) | |
download | CMake-2b400b242101fd8b7a46073412830278aa3cc9ec.zip CMake-2b400b242101fd8b7a46073412830278aa3cc9ec.tar.gz CMake-2b400b242101fd8b7a46073412830278aa3cc9ec.tar.bz2 |
Autogen: Generators: Move moc/uic/rcc executable test to generate method
Diffstat (limited to 'Source/cmQtAutoGenerators.cxx')
-rw-r--r-- | Source/cmQtAutoGenerators.cxx | 30 |
1 files changed, 18 insertions, 12 deletions
diff --git a/Source/cmQtAutoGenerators.cxx b/Source/cmQtAutoGenerators.cxx index c088f43..4f5af3a 100644 --- a/Source/cmQtAutoGenerators.cxx +++ b/Source/cmQtAutoGenerators.cxx @@ -582,20 +582,14 @@ bool cmQtAutoGenerators::RunAutogen(cmMakefile* makefile) notIncludedMocs, includedUis); // Generate files - if (!this->MocExecutable.empty()) { - if (!this->MocGenerateAll(includedMocs, notIncludedMocs)) { - return false; - } + if (!this->MocGenerateAll(includedMocs, notIncludedMocs)) { + return false; } - if (!this->UicExecutable.empty()) { - if (!this->UicGenerateAll(includedUis)) { - return false; - } + if (!this->UicGenerateAll(includedUis)) { + return false; } - if (!this->RccExecutable.empty()) { - if (!this->QrcGenerateAll()) { - return false; - } + if (!this->QrcGenerateAll()) { + return false; } return true; @@ -994,6 +988,10 @@ bool cmQtAutoGenerators::MocGenerateAll( const std::map<std::string, std::string>& includedMocs, const std::map<std::string, std::string>& notIncludedMocs) { + if (this->MocExecutable.empty()) { + return true; + } + // look for name collisions { std::multimap<std::string, std::string> collisions; @@ -1179,6 +1177,10 @@ bool cmQtAutoGenerators::MocGenerateFile(const std::string& sourceFile, bool cmQtAutoGenerators::UicGenerateAll( const std::map<std::string, std::vector<std::string> >& includedUis) { + if (this->UicExecutable.empty()) { + return true; + } + // single map with input / output names std::map<std::string, std::map<std::string, std::string> > uiGenMap; std::map<std::string, std::string> testMap; @@ -1304,6 +1306,10 @@ bool cmQtAutoGenerators::UicGenerateFile(const std::string& realName, bool cmQtAutoGenerators::QrcGenerateAll() { + if (this->RccExecutable.empty()) { + return true; + } + // generate single map with input / output names std::map<std::string, std::string> qrcGenMap; for (std::vector<std::string>::const_iterator si = this->RccSources.begin(); |