cmGeneratorExpressionEvaluationFile.h 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. /*============================================================================
  2. CMake - Cross Platform Makefile Generator
  3. Copyright 2013 Stephen Kelly <[email protected]>
  4. Distributed under the OSI-approved BSD License (the "License");
  5. see accompanying file Copyright.txt for details.
  6. This software is distributed WITHOUT ANY WARRANTY; without even the
  7. implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  8. See the License for more information.
  9. ============================================================================*/
  10. #ifndef cmGeneratorExpressionEvaluationFile_h
  11. #define cmGeneratorExpressionEvaluationFile_h
  12. #include "cmStandardIncludes.h"
  13. #include <cmsys/auto_ptr.hxx>
  14. #include "cmGeneratorExpression.h"
  15. //----------------------------------------------------------------------------
  16. class cmGeneratorExpressionEvaluationFile
  17. {
  18. public:
  19. cmGeneratorExpressionEvaluationFile(const std::string &input,
  20. cmsys::auto_ptr<cmCompiledGeneratorExpression> outputFileExpr,
  21. cmMakefile *makefile,
  22. cmsys::auto_ptr<cmCompiledGeneratorExpression> condition,
  23. bool inputIsContent);
  24. void Generate();
  25. std::vector<std::string> GetFiles() const { return this->Files; }
  26. private:
  27. void Generate(const char *config,
  28. cmCompiledGeneratorExpression* inputExpression,
  29. std::map<std::string, std::string> &outputFiles);
  30. private:
  31. const std::string Input;
  32. const cmsys::auto_ptr<cmCompiledGeneratorExpression> OutputFileExpr;
  33. cmMakefile *Makefile;
  34. const cmsys::auto_ptr<cmCompiledGeneratorExpression> Condition;
  35. std::vector<std::string> Files;
  36. const bool InputIsContent;
  37. };
  38. #endif