diff options
author | Stephen Kelly <steveire@gmail.com> | 2013-09-15 12:41:07 (GMT) |
---|---|---|
committer | Stephen Kelly <steveire@gmail.com> | 2013-10-24 10:30:41 (GMT) |
commit | 9c87d9cc3e7a046f79ff62eda81203ef424e4a14 (patch) | |
tree | da7af3604feb5e81e122aaabbc8a84345ba90440 /Source/cmQtAutoGenerators.h | |
parent | 84218e1870ab075c9e2be1f2947358702c849fed (diff) | |
download | CMake-9c87d9cc3e7a046f79ff62eda81203ef424e4a14.zip CMake-9c87d9cc3e7a046f79ff62eda81203ef424e4a14.tar.gz CMake-9c87d9cc3e7a046f79ff62eda81203ef424e4a14.tar.bz2 |
Add automatic rcc invocation for Qt.
This replaces the need to invoke qt4_add_resources by allowing
adding the source .qrc file directly to the target sources.
Diffstat (limited to 'Source/cmQtAutoGenerators.h')
-rw-r--r-- | Source/cmQtAutoGenerators.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/Source/cmQtAutoGenerators.h b/Source/cmQtAutoGenerators.h index 37b6154..696abc8 100644 --- a/Source/cmQtAutoGenerators.h +++ b/Source/cmQtAutoGenerators.h @@ -32,6 +32,7 @@ private: std::map<std::string, std::string> &configIncludes, std::map<std::string, std::string> &configDefines); void SetupAutoUicTarget(cmTarget* target); + void SetupAutoRccTarget(cmTarget* target); cmGlobalGenerator* CreateGlobalGenerator(cmake* cm, const char* targetDirectory); @@ -49,6 +50,7 @@ private: bool GenerateMoc(const std::string& sourceFile, const std::string& mocFileName); bool GenerateUi(const std::string& uiFileName); + bool GenerateQrc(); void ParseCppFile(const std::string& absFilename, const std::vector<std::string>& headerExtensions, std::map<std::string, std::string>& includedMocs, @@ -83,8 +85,12 @@ private: void MergeUicOptions(std::vector<std::string> &opts, const std::vector<std::string> &fileOpts, bool isQt5); + void MergeRccOptions(std::vector<std::string> &opts, + const std::vector<std::string> &fileOpts, bool isQt5); + std::string QtMajorVersion; std::string Sources; + std::string RccSources; std::string SkipMoc; std::string SkipUic; std::string Headers; @@ -93,6 +99,7 @@ private: std::string Builddir; std::string MocExecutable; std::string UicExecutable; + std::string RccExecutable; std::string MocCompileDefinitionsStr; std::string MocIncludesStr; std::string MocOptionsStr; @@ -109,11 +116,13 @@ private: std::vector<std::string> MocOptions; std::vector<std::string> UicTargetOptions; std::map<std::string, std::string> UicOptions; + std::map<std::string, std::string> RccOptions; bool Verbose; bool ColorOutput; bool RunMocFailed; bool RunUicFailed; + bool RunRccFailed; bool GenerateAll; bool RelaxedMode; |