cmGeneratorExpressionContext.h 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. /*============================================================================
  2. CMake - Cross Platform Makefile Generator
  3. Copyright 2012 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 cmGeneratorExpressionContext_h
  11. #define cmGeneratorExpressionContext_h
  12. #include "cmListFileCache.h"
  13. #include <set>
  14. #include <map>
  15. #include <string>
  16. class cmTarget;
  17. class cmGeneratorTarget;
  18. class cmLocalGenerator;
  19. //----------------------------------------------------------------------------
  20. struct cmGeneratorExpressionContext
  21. {
  22. cmGeneratorExpressionContext(cmLocalGenerator* lg, std::string const& config,
  23. bool quiet, const cmGeneratorTarget* headTarget,
  24. cmGeneratorTarget const* currentTarget,
  25. bool evaluateForBuildsystem,
  26. cmListFileBacktrace const& backtrace,
  27. std::string const& language);
  28. cmListFileBacktrace Backtrace;
  29. std::set<cmTarget*> DependTargets;
  30. std::set<cmTarget const*> AllTargets;
  31. std::set<std::string> SeenTargetProperties;
  32. std::set<cmTarget const*> SourceSensitiveTargets;
  33. std::map<cmTarget const*, std::map<std::string, std::string> >
  34. MaxLanguageStandard;
  35. cmLocalGenerator *LG;
  36. std::string Config;
  37. std::string Language;
  38. // The target whose property is being evaluated.
  39. cmGeneratorTarget const* HeadTarget;
  40. // The dependent of HeadTarget which appears
  41. // directly or indirectly in the property.
  42. cmGeneratorTarget const* CurrentTarget;
  43. bool Quiet;
  44. bool HadError;
  45. bool HadContextSensitiveCondition;
  46. bool HadHeadSensitiveCondition;
  47. bool EvaluateForBuildsystem;
  48. };
  49. #endif