diff options
author | Sebastian Holtermann <sebholt@xwmw.org> | 2017-11-18 10:29:26 (GMT) |
---|---|---|
committer | Sebastian Holtermann <sebholt@xwmw.org> | 2017-11-19 11:51:31 (GMT) |
commit | 75819b8626abf0e64895ef19acd27dbd0fa9255b (patch) | |
tree | 9eb14c45009c2518becf588ea259266a077cb952 /Source/cmQtAutoGeneratorRcc.h | |
parent | 27ed3b3537676e6090a0845e4805bb4a65d05bae (diff) | |
download | CMake-75819b8626abf0e64895ef19acd27dbd0fa9255b.zip CMake-75819b8626abf0e64895ef19acd27dbd0fa9255b.tar.gz CMake-75819b8626abf0e64895ef19acd27dbd0fa9255b.tar.bz2 |
Autogen: Add and use cmQtAutoGenerator base class
Adds the new base class `cmQtAutoGenerator` which contains common
variables and methods used by `cmQtAutoGeneratorMocUic` and
`cmQtAutoGeneratorRcc`.
Diffstat (limited to 'Source/cmQtAutoGeneratorRcc.h')
-rw-r--r-- | Source/cmQtAutoGeneratorRcc.h | 40 |
1 files changed, 3 insertions, 37 deletions
diff --git a/Source/cmQtAutoGeneratorRcc.h b/Source/cmQtAutoGeneratorRcc.h index 4539461..804d117 100644 --- a/Source/cmQtAutoGeneratorRcc.h +++ b/Source/cmQtAutoGeneratorRcc.h @@ -7,18 +7,18 @@ #include "cmFilePathChecksum.h" #include "cmQtAutoGen.h" +#include "cmQtAutoGenerator.h" #include <string> #include <vector> class cmMakefile; -class cmQtAutoGeneratorRcc +class cmQtAutoGeneratorRcc : public cmQtAutoGenerator { CM_DISABLE_COPY(cmQtAutoGeneratorRcc) public: cmQtAutoGeneratorRcc(); - bool Run(std::string const& infoFile, std::string const& config); private: // -- Initialization & settings @@ -26,47 +26,13 @@ private: void SettingsFileRead(cmMakefile* makefile); bool SettingsFileWrite(); // -- Central processing - bool Process(cmMakefile* makefile); + bool Process(cmMakefile* makefile) override; bool RccGenerate(); - // -- Log info - void LogBold(std::string const& message) const; - void LogInfo(cmQtAutoGen::Generator genType, - std::string const& message) const; - // -- Log warning - void LogWarning(cmQtAutoGen::Generator genType, - std::string const& message) const; - void LogFileWarning(cmQtAutoGen::Generator genType, - std::string const& filename, - std::string const& message) const; - // -- Log error - void LogError(cmQtAutoGen::Generator genType, - std::string const& message) const; - void LogFileError(cmQtAutoGen::Generator genType, - std::string const& filename, - std::string const& message) const; - void LogCommandError(cmQtAutoGen::Generator genType, - std::string const& message, - std::vector<std::string> const& command, - std::string const& output) const; - // -- Utility - bool MakeParentDirectory(cmQtAutoGen::Generator genType, - std::string const& filename) const; - bool FileDiffers(std::string const& filename, std::string const& content); - bool FileWrite(cmQtAutoGen::Generator genType, std::string const& filename, - std::string const& content); - bool RunCommand(std::vector<std::string> const& command, - std::string& output) const; - // -- Info settings - std::string InfoFile; - std::string InfoDir; - std::string InfoConfig; // -- Config settings std::string ConfigSuffix; cmQtAutoGen::MultiConfig MultiConfig; // -- Settings - bool Verbose; - bool ColorOutput; bool SettingsChanged; std::string SettingsFile; std::string SettingsString; |