2016-09-27 22:01:08 +03:00
|
|
|
/* Distributed under the OSI-approved BSD 3-Clause License. See accompanying
|
|
|
|
file Copyright.txt or https://cmake.org/licensing for details. */
|
2015-03-05 01:53:22 +03:00
|
|
|
#ifndef cmGeneratorExpressionContext_h
|
|
|
|
#define cmGeneratorExpressionContext_h
|
|
|
|
|
|
|
|
#include "cmListFileCache.h"
|
|
|
|
|
|
|
|
#include <map>
|
2016-04-29 17:53:13 +03:00
|
|
|
#include <set>
|
2015-03-05 01:53:22 +03:00
|
|
|
#include <string>
|
|
|
|
|
2015-09-16 05:38:52 +03:00
|
|
|
class cmGeneratorTarget;
|
2015-07-25 17:56:52 +03:00
|
|
|
class cmLocalGenerator;
|
2015-03-05 01:53:22 +03:00
|
|
|
|
|
|
|
struct cmGeneratorExpressionContext
|
|
|
|
{
|
2015-07-25 17:56:52 +03:00
|
|
|
cmGeneratorExpressionContext(cmLocalGenerator* lg, std::string const& config,
|
2015-09-16 05:38:52 +03:00
|
|
|
bool quiet, const cmGeneratorTarget* headTarget,
|
|
|
|
cmGeneratorTarget const* currentTarget,
|
2015-02-22 23:41:06 +03:00
|
|
|
bool evaluateForBuildsystem,
|
|
|
|
cmListFileBacktrace const& backtrace,
|
|
|
|
std::string const& language);
|
|
|
|
|
2015-03-05 01:53:22 +03:00
|
|
|
cmListFileBacktrace Backtrace;
|
2015-10-10 19:41:51 +03:00
|
|
|
std::set<cmGeneratorTarget*> DependTargets;
|
|
|
|
std::set<cmGeneratorTarget const*> AllTargets;
|
2015-03-05 01:53:22 +03:00
|
|
|
std::set<std::string> SeenTargetProperties;
|
2015-10-10 19:41:51 +03:00
|
|
|
std::set<cmGeneratorTarget const*> SourceSensitiveTargets;
|
|
|
|
std::map<cmGeneratorTarget const*, std::map<std::string, std::string> >
|
2016-05-16 17:34:04 +03:00
|
|
|
MaxLanguageStandard;
|
|
|
|
cmLocalGenerator* LG;
|
2015-03-05 01:53:22 +03:00
|
|
|
std::string Config;
|
|
|
|
std::string Language;
|
2015-10-10 19:27:10 +03: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-03-05 01:53:22 +03:00
|
|
|
bool Quiet;
|
|
|
|
bool HadError;
|
|
|
|
bool HadContextSensitiveCondition;
|
|
|
|
bool HadHeadSensitiveCondition;
|
|
|
|
bool EvaluateForBuildsystem;
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|