diff options
author | Sebastian Holtermann <sebholt@xwmw.org> | 2017-02-14 16:36:59 (GMT) |
---|---|---|
committer | Sebastian Holtermann <sebholt@xwmw.org> | 2017-02-19 11:35:39 (GMT) |
commit | 1bd74130f2a804d073081f7e3e4f307c3fecb07c (patch) | |
tree | e9da17af54a60fe5b8e8810a276dd61a238f9489 | |
parent | 96b6afdc4289a3f04983ee5f5af82c83b422c583 (diff) | |
download | CMake-1bd74130f2a804d073081f7e3e4f307c3fecb07c.zip CMake-1bd74130f2a804d073081f7e3e4f307c3fecb07c.tar.gz CMake-1bd74130f2a804d073081f7e3e4f307c3fecb07c.tar.bz2 |
Autogen: Rename GenerateFooAll variables to GenerateAllFoo
-rw-r--r-- | Source/cmQtAutoGenerators.cxx | 30 | ||||
-rw-r--r-- | Source/cmQtAutoGenerators.h | 6 |
2 files changed, 18 insertions, 18 deletions
diff --git a/Source/cmQtAutoGenerators.cxx b/Source/cmQtAutoGenerators.cxx index 1d6972b..765cb74 100644 --- a/Source/cmQtAutoGenerators.cxx +++ b/Source/cmQtAutoGenerators.cxx @@ -214,9 +214,9 @@ cmQtAutoGenerators::cmQtAutoGenerators() , RunMocFailed(false) , RunUicFailed(false) , RunRccFailed(false) - , GenerateMocAll(false) - , GenerateUicAll(false) - , GenerateRccAll(false) + , GenerateAllMoc(false) + , GenerateAllUic(false) + , GenerateAllRcc(false) { std::string colorEnv; @@ -461,33 +461,33 @@ void cmQtAutoGenerators::OldSettingsReadFile( if (!this->MocExecutable.empty()) { const std::string sol = makefile->GetSafeDefinition(MocOldSettingsKey); if (sol != this->MocSettingsString) { - this->GenerateMocAll = true; + this->GenerateAllMoc = true; } } if (!this->UicExecutable.empty()) { const std::string sol = makefile->GetSafeDefinition(UicOldSettingsKey); if (sol != this->UicSettingsString) { - this->GenerateUicAll = true; + this->GenerateAllUic = true; } } if (!this->RccExecutable.empty()) { const std::string sol = makefile->GetSafeDefinition(RccOldSettingsKey); if (sol != this->RccSettingsString) { - this->GenerateRccAll = true; + this->GenerateAllRcc = true; } } // In case any setting changed remove the old settings file. // This triggers a full rebuild on the next run if the current // build is aborted before writing the current settings in the end. - if (this->GenerateMocAll || this->GenerateUicAll || - this->GenerateRccAll) { + if (this->GenerateAllMoc || this->GenerateAllUic || + this->GenerateAllRcc) { cmSystemTools::RemoveFile(filename); } } else { // If the file could not be read re-generate everythiung. - this->GenerateMocAll = true; - this->GenerateUicAll = true; - this->GenerateRccAll = true; + this->GenerateAllMoc = true; + this->GenerateAllUic = true; + this->GenerateAllRcc = true; } } } @@ -497,7 +497,7 @@ bool cmQtAutoGenerators::OldSettingsWriteFile( { bool success = true; // Only write if any setting changed - if (this->GenerateMocAll || this->GenerateUicAll || this->GenerateRccAll) { + if (this->GenerateAllMoc || this->GenerateAllUic || this->GenerateAllRcc) { const std::string filename = OldSettingsFile(targetDirectory); cmsys::ofstream outfile; outfile.open(filename.c_str(), std::ios::trunc); @@ -1203,7 +1203,7 @@ bool cmQtAutoGenerators::MocGenerateFile(const std::string& sourceFile, this->AutogenBuildSubDir + subDirPrefix + mocFileName; const std::string mocFileAbs = this->CurrentBinaryDir + mocFileRel; - bool generateMoc = this->GenerateMocAll; + bool generateMoc = this->GenerateAllMoc; // Test if the source file is newer that the build file if (!generateMoc) { generateMoc = FileAbsentOrOlder(mocFileAbs, sourceFile); @@ -1331,7 +1331,7 @@ bool cmQtAutoGenerators::UicGenerateFile(const std::string& realName, this->AutogenBuildSubDir + "include/" + uiOutputFile; const std::string uicFileAbs = this->CurrentBinaryDir + uicFileRel; - bool generateUic = this->GenerateUicAll; + bool generateUic = this->GenerateAllUic; // Test if the source file is newer that the build file if (!generateUic) { generateUic = FileAbsentOrOlder(uicFileAbs, uiInputFile); @@ -1452,7 +1452,7 @@ bool cmQtAutoGenerators::QrcGenerateFile(const std::string& qrcInputFile, const std::string qrcBuildFile = this->CurrentBinaryDir + qrcOutputFile; - bool generateQrc = this->GenerateRccAll; + bool generateQrc = this->GenerateAllRcc; // Test if the resources list file is newer than build file if (!generateQrc) { generateQrc = FileAbsentOrOlder(qrcBuildFile, qrcInputFile); diff --git a/Source/cmQtAutoGenerators.h b/Source/cmQtAutoGenerators.h index 7891eb9..8dd44f6 100644 --- a/Source/cmQtAutoGenerators.h +++ b/Source/cmQtAutoGenerators.h @@ -159,9 +159,9 @@ private: bool RunMocFailed; bool RunUicFailed; bool RunRccFailed; - bool GenerateMocAll; - bool GenerateUicAll; - bool GenerateRccAll; + bool GenerateAllMoc; + bool GenerateAllUic; + bool GenerateAllRcc; bool MocRelaxedMode; }; |