2015-03-05 01:53:22 +03:00
|
|
|
/*============================================================================
|
|
|
|
CMake - Cross Platform Makefile Generator
|
|
|
|
Copyright 2012 Stephen Kelly <steveire@gmail.com>
|
|
|
|
|
|
|
|
Distributed under the OSI-approved BSD License (the "License");
|
|
|
|
see accompanying file Copyright.txt for details.
|
|
|
|
|
|
|
|
This software is distributed WITHOUT ANY WARRANTY; without even the
|
|
|
|
implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
|
|
|
See the License for more information.
|
|
|
|
============================================================================*/
|
|
|
|
#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> >
|
2015-03-05 01:53:22 +03:00
|
|
|
MaxLanguageStandard;
|
2015-07-25 17:56:52 +03:00
|
|
|
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
|