diff options
author | Sebastian Holtermann <sebholt@xwmw.org> | 2017-02-15 18:30:08 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2017-02-21 15:12:51 (GMT) |
commit | 4c60099fea2b06229900cc16fed907185c4fe2ef (patch) | |
tree | 098e98162f01838777b4fca0fc7a988f4c77f444 /Source/cmQtAutoGenerators.h | |
parent | 815a05cf12499b42acea70b5a9534e10e1701417 (diff) | |
download | CMake-4c60099fea2b06229900cc16fed907185c4fe2ef.zip CMake-4c60099fea2b06229900cc16fed907185c4fe2ef.tar.gz CMake-4c60099fea2b06229900cc16fed907185c4fe2ef.tar.bz2 |
Autogen: Acquire and store header extensions in Init()
Diffstat (limited to 'Source/cmQtAutoGenerators.h')
-rw-r--r-- | Source/cmQtAutoGenerators.h | 29 |
1 files changed, 12 insertions, 17 deletions
diff --git a/Source/cmQtAutoGenerators.h b/Source/cmQtAutoGenerators.h index 50df9f8..e6f9160 100644 --- a/Source/cmQtAutoGenerators.h +++ b/Source/cmQtAutoGenerators.h @@ -42,26 +42,23 @@ private: } // - Init and run - void Init(); - bool RunAutogen(cmMakefile* makefile); + void Init(cmMakefile* makefile); + bool RunAutogen(); // - Content analysis bool MocRequired(const std::string& text, std::string& macroName); - bool MocSkip(const std::string& absFilename); - bool UicSkip(const std::string& absFilename); + bool MocSkip(const std::string& absFilename) const; + bool UicSkip(const std::string& absFilename) const; bool ParseSourceFile( const std::string& absFilename, - const std::vector<std::string>& headerExtensions, std::map<std::string, std::string>& includedMocs, std::map<std::string, std::vector<std::string> >& includedUis, bool relaxed); - void SearchHeadersForSourceFile( - const std::string& absFilename, - const std::vector<std::string>& headerExtensions, - std::set<std::string>& absHeadersMoc, - std::set<std::string>& absHeadersUic); + void SearchHeadersForSourceFile(const std::string& absFilename, + std::set<std::string>& absHeadersMoc, + std::set<std::string>& absHeadersUic) const; void ParseHeaders( const std::set<std::string>& absHeadersMoc, @@ -76,7 +73,6 @@ private: bool ParseContentForMoc(const std::string& absFilename, const std::string& contentsString, - const std::vector<std::string>& headerExtensions, std::map<std::string, std::string>& includedMocs, bool relaxed); @@ -119,12 +115,10 @@ private: const char* baseSuffix) const; bool MakeParentDirectory(const std::string& filename); - bool FindHeader(std::string& header, const std::string& testBasePath, - const std::vector<std::string>& headerExtensions) const; - std::string FindMatchingHeader( - const std::string& basePath, const std::string& baseName, - const std::string& subDir, - const std::vector<std::string>& headerExtensions) const; + bool FindHeader(std::string& header, const std::string& testBasePath) const; + std::string FindMatchingHeader(const std::string& basePath, + const std::string& baseName, + const std::string& subDir) const; // - Target names std::string OriginTargetName; @@ -165,6 +159,7 @@ private: std::map<std::string, std::vector<std::string> > RccInputs; // - Utility cmFilePathChecksum fpathCheckSum; + std::vector<std::string> HeaderExtensions; cmsys::RegularExpression RegExpQObject; cmsys::RegularExpression RegExpQGadget; cmsys::RegularExpression RegExpMocInclude; |