cmake/Source/cmGeneratorExpressionContext.h

47 lines
1.5 KiB
C
Raw Normal View History

2016-10-30 18:24:19 +01:00
/* Distributed under the OSI-approved BSD 3-Clause License. See accompanying
file Copyright.txt or https://cmake.org/licensing for details. */
2015-08-17 11:37:30 +02:00
#ifndef cmGeneratorExpressionContext_h
#define cmGeneratorExpressionContext_h
#include "cmListFileCache.h"
#include <map>
2016-07-09 11:21:54 +02:00
#include <set>
2015-08-17 11:37:30 +02:00
#include <string>
2016-03-13 13:35:51 +01:00
class cmGeneratorTarget;
class cmLocalGenerator;
2015-08-17 11:37:30 +02:00
struct cmGeneratorExpressionContext
{
2016-03-13 13:35:51 +01:00
cmGeneratorExpressionContext(cmLocalGenerator* lg, std::string const& config,
bool quiet, const cmGeneratorTarget* headTarget,
cmGeneratorTarget const* currentTarget,
2015-08-17 11:37:30 +02:00
bool evaluateForBuildsystem,
cmListFileBacktrace const& backtrace,
std::string const& language);
cmListFileBacktrace Backtrace;
2016-03-13 13:35:51 +01:00
std::set<cmGeneratorTarget*> DependTargets;
std::set<cmGeneratorTarget const*> AllTargets;
2015-08-17 11:37:30 +02:00
std::set<std::string> SeenTargetProperties;
2016-03-13 13:35:51 +01:00
std::set<cmGeneratorTarget const*> SourceSensitiveTargets;
2018-01-26 17:06:56 +01:00
std::map<cmGeneratorTarget const*, std::map<std::string, std::string>>
2016-07-09 11:21:54 +02:00
MaxLanguageStandard;
cmLocalGenerator* LG;
2015-08-17 11:37:30 +02:00
std::string Config;
std::string Language;
2016-03-13 13:35:51 +01:00
// The target whose property is being evaluated.
cmGeneratorTarget const* HeadTarget;
// The dependent of HeadTarget which appears
// directly or indirectly in the property.
cmGeneratorTarget const* CurrentTarget;
2015-08-17 11:37:30 +02:00
bool Quiet;
bool HadError;
bool HadContextSensitiveCondition;
bool HadHeadSensitiveCondition;
bool EvaluateForBuildsystem;
};
#endif