2011-11-11 09:00:49 +04:00
|
|
|
/*============================================================================
|
|
|
|
CMake - Cross Platform Makefile Generator
|
|
|
|
Copyright 2011 Peter Collingbourne <peter@pcc.me.uk>
|
|
|
|
Copyright 2011 Nicolas Despres <nicolas.despres@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 cmGlobalNinjaGenerator_h
|
|
|
|
# define cmGlobalNinjaGenerator_h
|
|
|
|
|
2015-07-07 23:37:56 +03:00
|
|
|
# include "cmGlobalCommonGenerator.h"
|
2012-11-19 18:48:33 +04:00
|
|
|
# include "cmGlobalGeneratorFactory.h"
|
2011-11-11 09:00:49 +04:00
|
|
|
# include "cmNinjaTypes.h"
|
|
|
|
|
2012-06-10 22:20:29 +04:00
|
|
|
//#define NINJA_GEN_VERBOSE_FILES
|
|
|
|
|
2011-11-11 09:00:49 +04:00
|
|
|
class cmLocalGenerator;
|
|
|
|
class cmGeneratedFileStream;
|
2012-03-13 17:30:23 +04:00
|
|
|
class cmGeneratorTarget;
|
2011-11-11 09:00:49 +04:00
|
|
|
|
|
|
|
/**
|
|
|
|
* \class cmGlobalNinjaGenerator
|
|
|
|
* \brief Write a build.ninja file.
|
|
|
|
*
|
|
|
|
* The main differences between this generator and the UnixMakefile
|
|
|
|
* generator family are:
|
|
|
|
* - We don't care about VERBOSE variable or RULE_MESSAGES property since
|
|
|
|
* it is handle by Ninja's -v option.
|
|
|
|
* - We don't care about computing any progress status since Ninja manages
|
|
|
|
* it itself.
|
|
|
|
* - We don't care about generating a clean target since Ninja already have
|
|
|
|
* a clean tool.
|
|
|
|
* - We generate one build.ninja and one rules.ninja per project.
|
|
|
|
* - We try to minimize the number of generated rules: one per target and
|
|
|
|
* language.
|
|
|
|
* - We use Ninja special variable $in and $out to produce nice output.
|
|
|
|
* - We extensively use Ninja variable overloading system to minimize the
|
|
|
|
* number of generated rules.
|
|
|
|
*/
|
2015-07-07 23:37:56 +03:00
|
|
|
class cmGlobalNinjaGenerator : public cmGlobalCommonGenerator
|
2011-11-11 09:00:49 +04:00
|
|
|
{
|
|
|
|
public:
|
|
|
|
/// The default name of Ninja's build file. Typically: build.ninja.
|
|
|
|
static const char* NINJA_BUILD_FILE;
|
|
|
|
|
|
|
|
/// The default name of Ninja's rules file. Typically: rules.ninja.
|
|
|
|
/// It is included in the main build.ninja file.
|
|
|
|
static const char* NINJA_RULES_FILE;
|
|
|
|
|
|
|
|
/// The indentation string used when generating Ninja's build file.
|
|
|
|
static const char* INDENT;
|
|
|
|
|
|
|
|
/// Write @a count times INDENT level to output stream @a os.
|
|
|
|
static void Indent(std::ostream& os, int count);
|
|
|
|
|
|
|
|
/// Write a divider in the given output stream @a os.
|
|
|
|
static void WriteDivider(std::ostream& os);
|
|
|
|
|
2015-05-18 20:31:11 +03:00
|
|
|
static std::string EncodeRuleName(std::string const& name);
|
2011-11-11 09:00:49 +04:00
|
|
|
static std::string EncodeIdent(const std::string &ident, std::ostream &vars);
|
|
|
|
static std::string EncodeLiteral(const std::string &lit);
|
2015-05-07 21:01:58 +03:00
|
|
|
std::string EncodePath(const std::string &path);
|
2013-10-18 14:59:47 +04:00
|
|
|
static std::string EncodeDepfileSpace(const std::string &path);
|
2011-11-11 09:00:49 +04:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Write the given @a comment to the output stream @a os. It
|
|
|
|
* handles new line character properly.
|
|
|
|
*/
|
|
|
|
static void WriteComment(std::ostream& os, const std::string& comment);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Write a build statement to @a os with the @a comment using
|
|
|
|
* the @a rule the list of @a outputs files and inputs.
|
|
|
|
* It also writes the variables bound to this build statement.
|
|
|
|
* @warning no escaping of any kind is done here.
|
|
|
|
*/
|
2013-06-07 22:25:33 +04:00
|
|
|
void WriteBuild(std::ostream& os,
|
|
|
|
const std::string& comment,
|
|
|
|
const std::string& rule,
|
|
|
|
const cmNinjaDeps& outputs,
|
|
|
|
const cmNinjaDeps& explicitDeps,
|
|
|
|
const cmNinjaDeps& implicitDeps,
|
|
|
|
const cmNinjaDeps& orderOnlyDeps,
|
|
|
|
const cmNinjaVars& variables,
|
|
|
|
const std::string& rspfile = std::string(),
|
2015-05-18 20:31:11 +03:00
|
|
|
int cmdLineLimit = -1,
|
|
|
|
bool* usedResponseFile = 0);
|
2011-11-11 09:00:49 +04:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Helper to write a build statement with the special 'phony' rule.
|
|
|
|
*/
|
2013-06-07 22:25:33 +04:00
|
|
|
void WritePhonyBuild(std::ostream& os,
|
|
|
|
const std::string& comment,
|
|
|
|
const cmNinjaDeps& outputs,
|
|
|
|
const cmNinjaDeps& explicitDeps,
|
|
|
|
const cmNinjaDeps& implicitDeps = cmNinjaDeps(),
|
|
|
|
const cmNinjaDeps& orderOnlyDeps = cmNinjaDeps(),
|
|
|
|
const cmNinjaVars& variables = cmNinjaVars());
|
2011-11-11 09:00:49 +04:00
|
|
|
|
|
|
|
void WriteCustomCommandBuild(const std::string& command,
|
|
|
|
const std::string& description,
|
|
|
|
const std::string& comment,
|
2014-11-05 23:42:18 +03:00
|
|
|
bool uses_terminal,
|
2011-11-11 09:00:49 +04:00
|
|
|
const cmNinjaDeps& outputs,
|
|
|
|
const cmNinjaDeps& deps = cmNinjaDeps(),
|
2013-10-18 14:59:47 +04:00
|
|
|
const cmNinjaDeps& orderOnly = cmNinjaDeps());
|
2012-07-10 22:13:01 +04:00
|
|
|
void WriteMacOSXContentBuild(const std::string& input,
|
|
|
|
const std::string& output);
|
2011-11-11 09:00:49 +04:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Write a rule statement named @a name to @a os with the @a comment,
|
|
|
|
* the mandatory @a command, the @a depfile and the @a description.
|
|
|
|
* It also writes the variables bound to this rule statement.
|
|
|
|
* @warning no escaping of any kind is done here.
|
|
|
|
*/
|
|
|
|
static void WriteRule(std::ostream& os,
|
|
|
|
const std::string& name,
|
|
|
|
const std::string& command,
|
|
|
|
const std::string& description,
|
2012-07-10 12:37:31 +04:00
|
|
|
const std::string& comment,
|
|
|
|
const std::string& depfile,
|
2013-10-18 14:59:47 +04:00
|
|
|
const std::string& deptype,
|
2012-07-10 12:37:31 +04:00
|
|
|
const std::string& rspfile,
|
|
|
|
const std::string& rspcontent,
|
2014-11-14 02:32:44 +03:00
|
|
|
const std::string& restat,
|
2012-07-10 12:37:31 +04:00
|
|
|
bool generator);
|
2011-11-11 09:00:49 +04:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Write a variable named @a name to @a os with value @a value and an
|
|
|
|
* optional @a comment. An @a indent level can be specified.
|
|
|
|
* @warning no escaping of any kind is done here.
|
|
|
|
*/
|
|
|
|
static void WriteVariable(std::ostream& os,
|
|
|
|
const std::string& name,
|
|
|
|
const std::string& value,
|
|
|
|
const std::string& comment = "",
|
|
|
|
int indent = 0);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Write an include statement including @a filename with an optional
|
|
|
|
* @a comment to the @a os stream.
|
|
|
|
*/
|
|
|
|
static void WriteInclude(std::ostream& os,
|
|
|
|
const std::string& filename,
|
|
|
|
const std::string& comment = "");
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Write a default target statement specifying @a targets as
|
|
|
|
* the default targets.
|
|
|
|
*/
|
|
|
|
static void WriteDefault(std::ostream& os,
|
|
|
|
const cmNinjaDeps& targets,
|
|
|
|
const std::string& comment = "");
|
|
|
|
|
2015-05-07 01:45:01 +03:00
|
|
|
bool IsGCCOnWindows() const { return UsingGCCOnWindows; }
|
2012-07-18 13:27:49 +04:00
|
|
|
|
2011-11-11 09:00:49 +04:00
|
|
|
public:
|
2015-05-24 12:31:14 +03:00
|
|
|
cmGlobalNinjaGenerator(cmake* cm);
|
2011-11-11 09:00:49 +04:00
|
|
|
|
2012-11-19 18:48:33 +04:00
|
|
|
static cmGlobalGeneratorFactory* NewFactory() {
|
|
|
|
return new cmGlobalGeneratorSimpleFactory<cmGlobalNinjaGenerator>(); }
|
2011-11-11 09:00:49 +04:00
|
|
|
|
|
|
|
virtual ~cmGlobalNinjaGenerator() { }
|
|
|
|
|
2015-08-02 12:41:51 +03:00
|
|
|
virtual cmLocalGenerator* CreateLocalGenerator(cmMakefile* mf);
|
2011-11-11 09:00:49 +04:00
|
|
|
|
2014-02-25 02:36:27 +04:00
|
|
|
virtual std::string GetName() const {
|
2011-11-11 09:00:49 +04:00
|
|
|
return cmGlobalNinjaGenerator::GetActualName(); }
|
|
|
|
|
2014-02-25 02:36:27 +04:00
|
|
|
static std::string GetActualName() { return "Ninja"; }
|
2011-11-11 09:00:49 +04:00
|
|
|
|
2012-11-19 19:42:24 +04:00
|
|
|
static void GetDocumentation(cmDocumentationEntry& entry);
|
2011-11-11 09:00:49 +04:00
|
|
|
|
|
|
|
virtual void EnableLanguage(std::vector<std::string>const& languages,
|
|
|
|
cmMakefile* mf,
|
|
|
|
bool optional);
|
|
|
|
|
2013-11-15 22:33:32 +04:00
|
|
|
virtual void GenerateBuildCommand(
|
|
|
|
std::vector<std::string>& makeCommand,
|
2014-02-25 02:38:55 +04:00
|
|
|
const std::string& makeProgram,
|
2014-02-08 00:40:05 +04:00
|
|
|
const std::string& projectName,
|
2014-02-25 02:38:30 +04:00
|
|
|
const std::string& projectDir,
|
2014-02-07 02:31:47 +04:00
|
|
|
const std::string& targetName,
|
2014-02-10 07:48:34 +04:00
|
|
|
const std::string& config,
|
2015-02-26 13:32:26 +03:00
|
|
|
bool fast, bool verbose,
|
2013-11-15 22:33:32 +04:00
|
|
|
std::vector<std::string> const& makeOptions = std::vector<std::string>()
|
|
|
|
);
|
2011-11-11 09:00:49 +04:00
|
|
|
|
|
|
|
// Setup target names
|
|
|
|
virtual const char* GetAllTargetName() const { return "all"; }
|
|
|
|
virtual const char* GetInstallTargetName() const { return "install"; }
|
|
|
|
virtual const char* GetInstallLocalTargetName() const {
|
|
|
|
return "install/local";
|
|
|
|
}
|
|
|
|
virtual const char* GetInstallStripTargetName() const {
|
|
|
|
return "install/strip";
|
|
|
|
}
|
|
|
|
virtual const char* GetTestTargetName() const { return "test"; }
|
|
|
|
virtual const char* GetPackageTargetName() const { return "package"; }
|
|
|
|
virtual const char* GetPackageSourceTargetName() const {
|
|
|
|
return "package_source";
|
|
|
|
}
|
|
|
|
virtual const char* GetEditCacheTargetName() const {
|
|
|
|
return "edit_cache";
|
|
|
|
}
|
|
|
|
virtual const char* GetRebuildCacheTargetName() const {
|
|
|
|
return "rebuild_cache";
|
|
|
|
}
|
|
|
|
virtual const char* GetCleanTargetName() const { return "clean"; }
|
|
|
|
|
|
|
|
|
2012-07-18 13:27:49 +04:00
|
|
|
cmGeneratedFileStream* GetBuildFileStream() const {
|
|
|
|
return this->BuildFileStream; }
|
|
|
|
|
|
|
|
cmGeneratedFileStream* GetRulesFileStream() const {
|
|
|
|
return this->RulesFileStream; }
|
2011-11-11 09:00:49 +04:00
|
|
|
|
2015-09-25 20:26:44 +03:00
|
|
|
std::string ConvertToNinjaPath(const std::string& path);
|
|
|
|
|
|
|
|
struct MapToNinjaPathImpl {
|
|
|
|
cmGlobalNinjaGenerator* GG;
|
|
|
|
MapToNinjaPathImpl(cmGlobalNinjaGenerator* gg): GG(gg) {}
|
|
|
|
std::string operator()(std::string const& path) {
|
|
|
|
return this->GG->ConvertToNinjaPath(path);
|
|
|
|
}
|
|
|
|
};
|
|
|
|
MapToNinjaPathImpl MapToNinjaPath() {
|
|
|
|
return MapToNinjaPathImpl(this);
|
|
|
|
}
|
|
|
|
|
2012-05-10 01:47:37 +04:00
|
|
|
void AddCXXCompileCommand(const std::string &commandLine,
|
|
|
|
const std::string &sourceFile);
|
|
|
|
|
2011-11-11 09:00:49 +04:00
|
|
|
/**
|
|
|
|
* Add a rule to the generated build system.
|
|
|
|
* Call WriteRule() behind the scene but perform some check before like:
|
|
|
|
* - Do not add twice the same rule.
|
|
|
|
*/
|
|
|
|
void AddRule(const std::string& name,
|
|
|
|
const std::string& command,
|
|
|
|
const std::string& description,
|
2012-07-10 12:37:31 +04:00
|
|
|
const std::string& comment,
|
2013-10-18 14:59:47 +04:00
|
|
|
const std::string& depfile,
|
|
|
|
const std::string& deptype,
|
|
|
|
const std::string& rspfile,
|
|
|
|
const std::string& rspcontent,
|
2014-11-14 02:32:44 +03:00
|
|
|
const std::string& restat,
|
2013-10-18 14:59:47 +04:00
|
|
|
bool generator);
|
2011-11-11 09:00:49 +04:00
|
|
|
|
|
|
|
bool HasRule(const std::string& name);
|
|
|
|
|
|
|
|
void AddCustomCommandRule();
|
2012-07-10 22:13:01 +04:00
|
|
|
void AddMacOSXContentRule();
|
2011-11-11 09:00:49 +04:00
|
|
|
|
2012-07-18 13:27:49 +04:00
|
|
|
bool HasCustomCommandOutput(const std::string &output) {
|
|
|
|
return this->CustomCommandOutputs.find(output) !=
|
|
|
|
this->CustomCommandOutputs.end();
|
|
|
|
}
|
|
|
|
|
|
|
|
/// Called when we have seen the given custom command. Returns true
|
|
|
|
/// if we has seen it before.
|
|
|
|
bool SeenCustomCommand(cmCustomCommand const *cc) {
|
|
|
|
return !this->CustomCommands.insert(cc).second;
|
|
|
|
}
|
|
|
|
|
|
|
|
/// Called when we have seen the given custom command output.
|
|
|
|
void SeenCustomCommandOutput(const std::string &output) {
|
|
|
|
this->CustomCommandOutputs.insert(output);
|
|
|
|
// We don't need the assumed dependencies anymore, because we have
|
|
|
|
// an output.
|
|
|
|
this->AssumedSourceDependencies.erase(output);
|
|
|
|
}
|
|
|
|
|
|
|
|
void AddAssumedSourceDependencies(const std::string &source,
|
|
|
|
const cmNinjaDeps &deps) {
|
|
|
|
std::set<std::string> &ASD = this->AssumedSourceDependencies[source];
|
|
|
|
// Because we may see the same source file multiple times (same source
|
|
|
|
// specified in multiple targets), compute the union of any assumed
|
|
|
|
// dependencies.
|
|
|
|
ASD.insert(deps.begin(), deps.end());
|
|
|
|
}
|
|
|
|
|
2015-10-19 00:13:50 +03:00
|
|
|
void AppendTargetOutputs(cmGeneratorTarget const* target,
|
|
|
|
cmNinjaDeps& outputs);
|
|
|
|
void AppendTargetDepends(cmGeneratorTarget const* target,
|
|
|
|
cmNinjaDeps& outputs);
|
|
|
|
void AddDependencyToAll(cmGeneratorTarget* target);
|
2012-07-18 13:27:49 +04:00
|
|
|
void AddDependencyToAll(const std::string& input);
|
|
|
|
|
|
|
|
const std::vector<cmLocalGenerator*>& GetLocalGenerators() const {
|
|
|
|
return LocalGenerators; }
|
|
|
|
|
2015-06-06 15:09:35 +03:00
|
|
|
bool IsExcluded(cmLocalGenerator* root, cmGeneratorTarget* target) {
|
2012-07-18 13:27:49 +04:00
|
|
|
return cmGlobalGenerator::IsExcluded(root, target); }
|
|
|
|
|
|
|
|
int GetRuleCmdLength(const std::string& name) {
|
|
|
|
return RuleCmdLength[name]; }
|
|
|
|
|
2015-10-19 00:13:50 +03:00
|
|
|
void AddTargetAlias(const std::string& alias, cmGeneratorTarget* target);
|
2012-07-18 13:27:49 +04:00
|
|
|
|
2014-03-13 00:09:20 +04:00
|
|
|
virtual void ComputeTargetObjectDirectory(cmGeneratorTarget* gt) const;
|
2014-10-02 23:21:05 +04:00
|
|
|
|
2015-08-08 23:04:08 +03:00
|
|
|
std::string CurrentNinjaVersion() const;
|
|
|
|
// Ninja generator uses 'deps' and 'msvc_deps_prefix' introduced in 1.3
|
|
|
|
static std::string RequiredNinjaVersion() { return "1.3"; }
|
|
|
|
static std::string RequiredNinjaVersionForConsolePool() { return "1.5"; }
|
2014-11-05 23:40:14 +03:00
|
|
|
bool SupportsConsolePool() const;
|
|
|
|
|
2011-11-11 09:00:49 +04:00
|
|
|
protected:
|
|
|
|
|
2014-07-22 23:01:05 +04:00
|
|
|
virtual void Generate();
|
|
|
|
|
2014-01-10 16:35:58 +04:00
|
|
|
virtual bool CheckALLOW_DUPLICATE_CUSTOM_TARGETS() const { return true; }
|
2011-11-11 09:00:49 +04:00
|
|
|
|
2012-07-18 13:27:49 +04:00
|
|
|
|
2012-03-13 17:30:23 +04:00
|
|
|
private:
|
2013-11-12 17:44:08 +04:00
|
|
|
virtual std::string GetEditCacheCommand() const;
|
2012-03-13 17:30:23 +04:00
|
|
|
|
|
|
|
|
2011-11-11 09:00:49 +04:00
|
|
|
void OpenBuildFileStream();
|
|
|
|
void CloseBuildFileStream();
|
|
|
|
|
2012-05-10 01:47:37 +04:00
|
|
|
void CloseCompileCommandsStream();
|
|
|
|
|
2011-11-11 09:00:49 +04:00
|
|
|
void OpenRulesFileStream();
|
|
|
|
void CloseRulesFileStream();
|
|
|
|
|
|
|
|
/// Write the common disclaimer text at the top of each build file.
|
|
|
|
void WriteDisclaimer(std::ostream& os);
|
|
|
|
|
2012-02-05 05:48:08 +04:00
|
|
|
void WriteAssumedSourceDependencies();
|
2011-11-11 09:00:49 +04:00
|
|
|
|
|
|
|
void WriteTargetAliases(std::ostream& os);
|
2013-06-07 22:26:03 +04:00
|
|
|
void WriteUnknownExplicitDependencies(std::ostream& os);
|
2011-11-11 09:00:49 +04:00
|
|
|
|
|
|
|
void WriteBuiltinTargets(std::ostream& os);
|
|
|
|
void WriteTargetAll(std::ostream& os);
|
|
|
|
void WriteTargetRebuildManifest(std::ostream& os);
|
2012-04-19 18:47:48 +04:00
|
|
|
void WriteTargetClean(std::ostream& os);
|
2012-04-19 19:07:35 +04:00
|
|
|
void WriteTargetHelp(std::ostream& os);
|
2011-11-11 09:00:49 +04:00
|
|
|
|
2012-06-15 15:46:18 +04:00
|
|
|
std::string ninjaCmd() const;
|
2012-06-15 14:14:13 +04:00
|
|
|
|
2014-10-10 03:22:45 +04:00
|
|
|
/// The file containing the build statement. (the relationship of the
|
2011-11-11 09:00:49 +04:00
|
|
|
/// compilation DAG).
|
|
|
|
cmGeneratedFileStream* BuildFileStream;
|
|
|
|
/// The file containing the rule statements. (The action attached to each
|
|
|
|
/// edge of the compilation DAG).
|
|
|
|
cmGeneratedFileStream* RulesFileStream;
|
2012-05-10 01:47:37 +04:00
|
|
|
cmGeneratedFileStream* CompileCommandsStream;
|
2011-11-11 09:00:49 +04:00
|
|
|
|
|
|
|
/// The type used to store the set of rules added to the generated build
|
|
|
|
/// system.
|
|
|
|
typedef std::set<std::string> RulesSetType;
|
|
|
|
|
|
|
|
/// The set of rules added to the generated build system.
|
|
|
|
RulesSetType Rules;
|
|
|
|
|
2012-07-02 12:30:29 +04:00
|
|
|
/// Length of rule command, used by rsp file evaluation
|
|
|
|
std::map<std::string, int> RuleCmdLength;
|
|
|
|
|
2011-11-11 09:00:49 +04:00
|
|
|
/// The set of dependencies to add to the "all" target.
|
|
|
|
cmNinjaDeps AllDependencies;
|
|
|
|
|
2015-05-07 01:45:01 +03:00
|
|
|
bool UsingGCCOnWindows;
|
2015-05-07 21:01:58 +03:00
|
|
|
|
2011-11-11 09:00:49 +04:00
|
|
|
/// The set of custom commands we have seen.
|
2012-03-13 17:17:46 +04:00
|
|
|
std::set<cmCustomCommand const*> CustomCommands;
|
2011-11-11 09:00:49 +04:00
|
|
|
|
|
|
|
/// The set of custom command outputs we have seen.
|
|
|
|
std::set<std::string> CustomCommandOutputs;
|
|
|
|
|
2015-03-20 23:43:21 +03:00
|
|
|
/// Whether we are collecting known build outputs and needed
|
|
|
|
/// dependencies to determine unknown dependencies.
|
|
|
|
bool ComputingUnknownDependencies;
|
|
|
|
cmPolicies::PolicyStatus PolicyCMP0058;
|
|
|
|
|
2014-06-28 00:13:50 +04:00
|
|
|
/// The combined explicit dependencies of custom build commands
|
|
|
|
std::set<std::string> CombinedCustomCommandExplicitDependencies;
|
|
|
|
|
|
|
|
/// When combined with CombinedCustomCommandExplicitDependencies it allows
|
|
|
|
/// us to detect the set of explicit dependencies that have
|
2013-06-07 22:26:03 +04:00
|
|
|
std::set<std::string> CombinedBuildOutputs;
|
|
|
|
|
2011-11-11 09:00:49 +04:00
|
|
|
/// The mapping from source file to assumed dependencies.
|
|
|
|
std::map<std::string, std::set<std::string> > AssumedSourceDependencies;
|
|
|
|
|
2015-10-19 00:13:50 +03:00
|
|
|
typedef std::map<std::string, cmGeneratorTarget*> TargetAliasMap;
|
2011-11-11 09:00:49 +04:00
|
|
|
TargetAliasMap TargetAliases;
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif // ! cmGlobalNinjaGenerator_h
|