summaryrefslogtreecommitdiffstats
path: root/Source/cmQtAutoRcc.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'Source/cmQtAutoRcc.cxx')
-rw-r--r--Source/cmQtAutoRcc.cxx43
1 files changed, 8 insertions, 35 deletions
diff --git a/Source/cmQtAutoRcc.cxx b/Source/cmQtAutoRcc.cxx
index 576f611..e288645 100644
--- a/Source/cmQtAutoRcc.cxx
+++ b/Source/cmQtAutoRcc.cxx
@@ -35,11 +35,6 @@ public:
private:
// -- Utility
bool IsMultiConfig() const { return this->MultiConfig_; }
- std::string const& GetGenerator() const { return this->Generator_; }
- bool IsXcode() const
- {
- return this->GetGenerator().find("Xcode") != std::string::npos;
- }
std::string MultiConfigOutput() const;
// -- Abstract processing interface
@@ -58,8 +53,6 @@ private:
// -- Config settings
bool MultiConfig_ = false;
- bool CrossConfig_ = false;
- std::string Generator_;
// -- Directories
std::string AutogenBuildDir_;
std::string IncludeDir_;
@@ -99,45 +92,26 @@ bool cmQtAutoRccT::InitFromInfo(InfoT const& info)
{
// -- Required settings
if (!info.GetBool("MULTI_CONFIG", this->MultiConfig_, true) ||
- !info.GetString("GENERATOR", this->Generator_, true) ||
- !info.GetBool("CROSS_CONFIG", this->CrossConfig_, true) ||
!info.GetString("BUILD_DIR", this->AutogenBuildDir_, true) ||
!info.GetStringConfig("INCLUDE_DIR", this->IncludeDir_, true) ||
- !info.GetArrayConfig("RCC_LIST_OPTIONS", this->RccListOptions_, false) ||
+ !info.GetString("RCC_EXECUTABLE", this->RccExecutable_, true) ||
+ !info.GetArray("RCC_LIST_OPTIONS", this->RccListOptions_, false) ||
!info.GetString("LOCK_FILE", this->LockFile_, true) ||
!info.GetStringConfig("SETTINGS_FILE", this->SettingsFile_, true) ||
!info.GetString("SOURCE", this->QrcFile_, true) ||
!info.GetString("OUTPUT_CHECKSUM", this->RccPathChecksum_, true) ||
!info.GetString("OUTPUT_NAME", this->RccFileName_, true) ||
!info.GetArray("OPTIONS", this->Options_, false) ||
- !info.GetArrayConfig("INPUTS", this->Inputs_, false)) {
+ !info.GetArray("INPUTS", this->Inputs_, false)) {
return false;
}
- if (this->CrossConfig_) {
- std::string const rccExecutableWithConfig =
- "RCC_EXECUTABLE_" + this->ExecutableConfig();
- if (!info.GetString(rccExecutableWithConfig, this->RccExecutable_, true)) {
- return false;
- }
- } else {
- if (!info.GetStringConfig("RCC_EXECUTABLE", this->RccExecutable_, true)) {
- return false;
- }
- }
-
// -- Derive information
this->QrcFileName_ = cmSystemTools::GetFilenameName(this->QrcFile_);
this->QrcFileDir_ = cmSystemTools::GetFilenamePath(this->QrcFile_);
- if (IsMultiConfig() && !this->IsXcode()) {
- this->RccFilePublic_ =
- cmStrCat(this->AutogenBuildDir_, '/', this->RccPathChecksum_, "_",
- this->InfoConfig(), '/', this->RccFileName_);
- } else {
- this->RccFilePublic_ =
- cmStrCat(this->AutogenBuildDir_, '/', this->RccPathChecksum_, '/',
- this->RccFileName_);
- }
+ this->RccFilePublic_ =
+ cmStrCat(this->AutogenBuildDir_, '/', this->RccPathChecksum_, '/',
+ this->RccFileName_);
// rcc output file name
if (this->IsMultiConfig()) {
@@ -546,8 +520,7 @@ bool cmQtAutoRccT::GenerateWrapper()
} // End of unnamed namespace
-bool cmQtAutoRcc(cm::string_view infoFile, cm::string_view config,
- cm::string_view executableConfig)
+bool cmQtAutoRcc(cm::string_view infoFile, cm::string_view config)
{
- return cmQtAutoRccT().Run(infoFile, config, executableConfig);
+ return cmQtAutoRccT().Run(infoFile, config);
}