summaryrefslogtreecommitdiffstats
path: root/Source/cmQtAutoGenerators.h
diff options
context:
space:
mode:
authorSebastian Holtermann <sebholt@xwmw.org>2017-08-31 14:32:14 (GMT)
committerSebastian Holtermann <sebholt@xwmw.org>2017-09-07 15:53:19 (GMT)
commit37ef18a468149ba579b96a763ea3042a360652d7 (patch)
tree5e83e53948d42c288d473690886ba9c24f9bfc34 /Source/cmQtAutoGenerators.h
parent761b3d79746ab91219d6478a021ba3a1c56f05c8 (diff)
downloadCMake-37ef18a468149ba579b96a763ea3042a360652d7.zip
CMake-37ef18a468149ba579b96a763ea3042a360652d7.tar.gz
CMake-37ef18a468149ba579b96a763ea3042a360652d7.tar.bz2
Autogen: Pass RCC build names and function names in info file
- The output file name of the `rcc` command get computed once in the AUTOGEN initializer and is passed in the info file. - The function name for the `-name` option of `rcc` gets computed once in the AUTOGEN initializer and is passed along with the other `rcc` options in the info file.
Diffstat (limited to 'Source/cmQtAutoGenerators.h')
-rw-r--r--Source/cmQtAutoGenerators.h16
1 files changed, 11 insertions, 5 deletions
diff --git a/Source/cmQtAutoGenerators.h b/Source/cmQtAutoGenerators.h
index ff31884..975b0b6 100644
--- a/Source/cmQtAutoGenerators.h
+++ b/Source/cmQtAutoGenerators.h
@@ -46,6 +46,15 @@ private:
cmsys::RegularExpression RegExp;
};
+ /// @brief RCC job
+ struct RccJob
+ {
+ std::string QrcFile;
+ std::string RccFile;
+ std::vector<std::string> Options;
+ std::vector<std::string> Inputs;
+ };
+
// -- Configuration
bool MocDependFilterPush(const std::string& key, const std::string& regExp);
bool ReadAutogenInfoFile(cmMakefile* makefile,
@@ -135,8 +144,7 @@ private:
// -- Rcc file generation
bool RccGenerateAll();
- bool RccGenerateFile(const std::string& qrcInputFile,
- const std::string& qrcOutputFile, bool unique_n);
+ bool RccGenerateFile(const RccJob& rccJob);
// -- Logging
void LogErrorNameCollision(
@@ -227,9 +235,7 @@ private:
// -- Rcc
bool RccSettingsChanged;
bool RccRunFailed;
- std::vector<std::string> RccSources;
- std::map<std::string, std::string> RccOptions;
- std::map<std::string, std::vector<std::string>> RccInputs;
+ std::vector<RccJob> RccJobs;
};
#endif