cmake/Source/cmGeneratorExpressionContext.h

45 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. */
2021-09-14 00:13:48 +02:00
#pragma once
2015-08-17 11:37:30 +02:00
#include <map>
2016-07-09 11:21:54 +02:00
#include <set>
2015-08-17 11:37:30 +02:00
#include <string>
2020-02-01 23:06:01 +01:00
#include "cmListFileCache.h"
2016-03-13 13:35:51 +01:00
class cmGeneratorTarget;
class cmLocalGenerator;
2015-08-17 11:37:30 +02:00
struct cmGeneratorExpressionContext
{
2019-11-11 23:01:05 +01:00
cmGeneratorExpressionContext(cmLocalGenerator* lg, std::string config,
2016-03-13 13:35:51 +01:00
bool quiet, const cmGeneratorTarget* headTarget,
cmGeneratorTarget const* currentTarget,
2015-08-17 11:37:30 +02:00
bool evaluateForBuildsystem,
2019-11-11 23:01:05 +01:00
cmListFileBacktrace backtrace,
std::string language);
2015-08-17 11:37:30 +02:00
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;
2022-08-04 22:12:04 +02:00
bool HadError = false;
bool HadContextSensitiveCondition = false;
bool HadHeadSensitiveCondition = false;
bool HadLinkLanguageSensitiveCondition = false;
2015-08-17 11:37:30 +02:00
bool EvaluateForBuildsystem;
};