diff options
author | Sebastian Holtermann <sebholt@xwmw.org> | 2017-01-11 21:48:01 (GMT) |
---|---|---|
committer | Sebastian Holtermann <sebholt@xwmw.org> | 2017-01-12 23:00:44 (GMT) |
commit | 721997a7a23f0cfa5c9e096cc3768625a51f359d (patch) | |
tree | 37c08d5ce68d95620a26e865b9e8f0aeec207bec /Source/cmQtAutoGenerators.cxx | |
parent | 9f47d32697686265bc2c5a708d2b53e2337f3f10 (diff) | |
download | CMake-721997a7a23f0cfa5c9e096cc3768625a51f359d.zip CMake-721997a7a23f0cfa5c9e096cc3768625a51f359d.tar.gz CMake-721997a7a23f0cfa5c9e096cc3768625a51f359d.tar.bz2 |
Autogen: Generators: Dedicated generateAll variables for MOC/UIC/RCC
Diffstat (limited to 'Source/cmQtAutoGenerators.cxx')
-rw-r--r-- | Source/cmQtAutoGenerators.cxx | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/Source/cmQtAutoGenerators.cxx b/Source/cmQtAutoGenerators.cxx index db35fa6..1d7e910 100644 --- a/Source/cmQtAutoGenerators.cxx +++ b/Source/cmQtAutoGenerators.cxx @@ -197,7 +197,9 @@ cmQtAutoGenerators::cmQtAutoGenerators() , RunMocFailed(false) , RunUicFailed(false) , RunRccFailed(false) - , GenerateAll(false) + , GenerateMocAll(false) + , GenerateUicAll(false) + , GenerateRccAll(false) { std::string colorEnv; @@ -419,14 +421,14 @@ void cmQtAutoGenerators::ReadOldMocSettingsFile( std::string oldSettings = makefile->GetSafeDefinition(MocOldSettingsKey); if (oldSettings != this->MocSettingsString) { // If settings changed everything needs to be re-generated. - this->GenerateAll = true; + this->GenerateMocAll = true; // Remove old file in case processing gets aborted before // writing the current settings in the end. cmSystemTools::RemoveFile(filename); } } else { // If the file could not be read everything needs to be re-generated. - this->GenerateAll = true; + this->GenerateMocAll = true; } } @@ -1119,7 +1121,7 @@ bool cmQtAutoGenerators::MocGenerateFile(const std::string& sourceFile, this->AutogenBuildSubDir + subDirPrefix + mocFileName; const std::string mocFileAbs = this->CurrentBinaryDir + mocFileRel; - bool generateMoc = this->GenerateAll; + bool generateMoc = this->GenerateMocAll; // Test if the source file is newer that the build file if (!generateMoc) { generateMoc = FileAbsentOrOlder(mocFileAbs, sourceFile); @@ -1247,7 +1249,7 @@ bool cmQtAutoGenerators::UicGenerateFile(const std::string& realName, this->AutogenBuildSubDir + "include/" + uiOutputFile; const std::string uicFileAbs = this->CurrentBinaryDir + uicFileRel; - bool generateUic = this->GenerateAll; + bool generateUic = this->GenerateUicAll; // Test if the source file is newer that the build file if (!generateUic) { generateUic = FileAbsentOrOlder(uicFileAbs, uiInputFile); @@ -1368,7 +1370,7 @@ bool cmQtAutoGenerators::QrcGenerateFile(const std::string& qrcInputFile, const std::string qrcBuildFile = this->CurrentBinaryDir + qrcOutputFile; - bool generateQrc = this->GenerateAll; + bool generateQrc = this->GenerateRccAll; // Test if the resources list file is newer than build file if (!generateQrc) { generateQrc = FileAbsentOrOlder(qrcBuildFile, qrcInputFile); |