diff options
author | Stephen Kelly <steveire@gmail.com> | 2015-09-26 16:54:56 (GMT) |
---|---|---|
committer | Stephen Kelly <steveire@gmail.com> | 2015-09-26 17:32:54 (GMT) |
commit | 1e83a963d8983f09f5fe6fbf7d268f920b4ed7d0 (patch) | |
tree | ac7da1df619640dea3423f2875641a1da9aefd92 /Source/cmQtAutoGenerators.h | |
parent | 12f0e13c5f546a721d893adedba327c18c5c9e5e (diff) | |
download | CMake-1e83a963d8983f09f5fe6fbf7d268f920b4ed7d0.zip CMake-1e83a963d8983f09f5fe6fbf7d268f920b4ed7d0.tar.gz CMake-1e83a963d8983f09f5fe6fbf7d268f920b4ed7d0.tar.bz2 |
QtAutogen: Split initializer methods into separate class.
Diffstat (limited to 'Source/cmQtAutoGenerators.h')
-rw-r--r-- | Source/cmQtAutoGenerators.h | 36 |
1 files changed, 21 insertions, 15 deletions
diff --git a/Source/cmQtAutoGenerators.h b/Source/cmQtAutoGenerators.h index 5f8ee62..63b1c4a 100644 --- a/Source/cmQtAutoGenerators.h +++ b/Source/cmQtAutoGenerators.h @@ -25,12 +25,9 @@ class cmLocalGenerator; class cmTarget; class cmSourceFile; -class cmQtAutoGenerators +class cmQtAutoGeneratorInitializer { public: - cmQtAutoGenerators(); - bool Run(const std::string& targetDirectory, const std::string& config); - static void InitializeAutogenSources(cmTarget* target); static void InitializeAutogenTarget(cmLocalGenerator* lg, cmTarget* target); static void SetupAutoGenerateTarget(cmTarget const* target); @@ -53,6 +50,26 @@ private: std::map<std::string, std::string> &configUicOptions); static void SetupAutoRccTarget(cmTarget const* target); + static void MergeRccOptions(std::vector<std::string> &opts, + const std::vector<std::string> &fileOpts, bool isQt5); + + static std::string GetRccExecutable(cmTarget const* target); + + static std::string ListQt5RccInputs(cmSourceFile* sf, cmTarget const* target, + std::vector<std::string>& depends); + + static std::string ListQt4RccInputs(cmSourceFile* sf, + std::vector<std::string>& depends); +}; + +class cmQtAutoGenerators +{ +public: + cmQtAutoGenerators(); + bool Run(const std::string& targetDirectory, const std::string& config); + +private: + bool ReadAutogenInfoFile(cmMakefile* makefile, const std::string& targetDirectory, const std::string& config); @@ -100,17 +117,6 @@ private: static void MergeUicOptions(std::vector<std::string> &opts, const std::vector<std::string> &fileOpts, bool isQt5); - static void MergeRccOptions(std::vector<std::string> &opts, - const std::vector<std::string> &fileOpts, bool isQt5); - - static std::string GetRccExecutable(cmTarget const* target); - - static std::string ListQt5RccInputs(cmSourceFile* sf, cmTarget const* target, - std::vector<std::string>& depends); - - static std::string ListQt4RccInputs(cmSourceFile* sf, - std::vector<std::string>& depends); - bool InputFilesNewerThanQrc(const std::string& qrcFile, const std::string& rccOutput); |