summaryrefslogtreecommitdiff
path: root/Source/cmQtAutoGenerators.h
diff options
context:
space:
mode:
authorStephen Kelly <steveire@gmail.com>2015-09-26 18:54:56 +0200
committerStephen Kelly <steveire@gmail.com>2015-09-26 19:32:54 +0200
commit1e83a963d8983f09f5fe6fbf7d268f920b4ed7d0 (patch)
treeac7da1df619640dea3423f2875641a1da9aefd92 /Source/cmQtAutoGenerators.h
parent12f0e13c5f546a721d893adedba327c18c5c9e5e (diff)
downloadcmake-1e83a963d8983f09f5fe6fbf7d268f920b4ed7d0.tar.gz
QtAutogen: Split initializer methods into separate class.
Diffstat (limited to 'Source/cmQtAutoGenerators.h')
-rw-r--r--Source/cmQtAutoGenerators.h36
1 files changed, 21 insertions, 15 deletions
diff --git a/Source/cmQtAutoGenerators.h b/Source/cmQtAutoGenerators.h
index 5f8ee62839..63b1c4a639 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);