cmGeneratorExpressionContext.h 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  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. //----------------------------------------------------------------------------
  18. struct cmGeneratorExpressionContext
  19. {
  20. cmGeneratorExpressionContext(cmMakefile* mf, std::string const& config,
  21. bool quiet, cmTarget const* headTarget,
  22. cmTarget const* currentTarget,
  23. bool evaluateForBuildsystem,
  24. cmListFileBacktrace const& backtrace,
  25. std::string const& language);
  26. cmListFileBacktrace Backtrace;
  27. std::set<cmTarget*> DependTargets;
  28. std::set<cmTarget const*> AllTargets;
  29. std::set<std::string> SeenTargetProperties;
  30. std::set<cmTarget const*> SourceSensitiveTargets;
  31. std::map<cmTarget const*, std::map<std::string, std::string> >
  32. MaxLanguageStandard;
  33. cmMakefile *Makefile;
  34. std::string Config;
  35. std::string Language;
  36. cmTarget const* HeadTarget; // The target whose property is being evaluated.
  37. cmTarget const* CurrentTarget; // The dependent of HeadTarget which appears
  38. // directly or indirectly in the property.
  39. bool Quiet;
  40. bool HadError;
  41. bool HadContextSensitiveCondition;
  42. bool HadHeadSensitiveCondition;
  43. bool EvaluateForBuildsystem;
  44. };
  45. #endif