diff options
author | Stephen Kelly <steveire@gmail.com> | 2015-08-01 10:19:32 (GMT) |
---|---|---|
committer | Stephen Kelly <steveire@gmail.com> | 2015-08-01 11:07:11 (GMT) |
commit | 12c3f24827d2459154fcc9773b279f96c303e591 (patch) | |
tree | db4b3f68b00068a9960875d539b95432e424b870 /Source/cmGeneratorExpressionEvaluationFile.h | |
parent | 6c0e9ee276e9e35a970990baec09c0c2c85b3804 (diff) | |
download | CMake-12c3f24827d2459154fcc9773b279f96c303e591.zip CMake-12c3f24827d2459154fcc9773b279f96c303e591.tar.gz CMake-12c3f24827d2459154fcc9773b279f96c303e591.tar.bz2 |
cmGeneratorExpressionEvaluationFile: Require generator context.
Avoid storing a cmMakefile as a member, and evaluate in the context of
a cmLocalGenerator instead.
Diffstat (limited to 'Source/cmGeneratorExpressionEvaluationFile.h')
-rw-r--r-- | Source/cmGeneratorExpressionEvaluationFile.h | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/Source/cmGeneratorExpressionEvaluationFile.h b/Source/cmGeneratorExpressionEvaluationFile.h index 5d8b54c..ad41274 100644 --- a/Source/cmGeneratorExpressionEvaluationFile.h +++ b/Source/cmGeneratorExpressionEvaluationFile.h @@ -18,31 +18,32 @@ #include "cmGeneratorExpression.h" +class cmLocalGenerator; + //---------------------------------------------------------------------------- class cmGeneratorExpressionEvaluationFile { public: cmGeneratorExpressionEvaluationFile(const std::string &input, cmsys::auto_ptr<cmCompiledGeneratorExpression> outputFileExpr, - cmMakefile *makefile, cmsys::auto_ptr<cmCompiledGeneratorExpression> condition, bool inputIsContent); - void Generate(); + void Generate(cmLocalGenerator* lg); std::vector<std::string> GetFiles() const { return this->Files; } - void CreateOutputFile(std::string const& config); + void CreateOutputFile(cmLocalGenerator* lg, std::string const& config); private: - void Generate(const std::string& config, const std::string& lang, - cmCompiledGeneratorExpression* inputExpression, - std::map<std::string, std::string> &outputFiles, mode_t perm); + void Generate(cmLocalGenerator* lg, const std::string& config, + const std::string& lang, + cmCompiledGeneratorExpression* inputExpression, + std::map<std::string, std::string> &outputFiles, mode_t perm); private: const std::string Input; const cmsys::auto_ptr<cmCompiledGeneratorExpression> OutputFileExpr; - cmMakefile *Makefile; const cmsys::auto_ptr<cmCompiledGeneratorExpression> Condition; std::vector<std::string> Files; const bool InputIsContent; |