2016-09-27 19:01:08 +00:00
|
|
|
/* Distributed under the OSI-approved BSD 3-Clause License. See accompanying
|
|
|
|
file Copyright.txt or https://cmake.org/licensing for details. */
|
2011-11-11 05:00:49 +00:00
|
|
|
#ifndef cmNinjaTypes_h
|
2016-04-29 13:40:20 +00:00
|
|
|
#define cmNinjaTypes_h
|
|
|
|
|
2017-04-11 20:00:21 +00:00
|
|
|
#include "cmConfigure.h" // IWYU pragma: keep
|
2016-09-01 18:05:48 +00:00
|
|
|
|
2016-11-05 20:40:14 +00:00
|
|
|
#include <map>
|
2017-08-31 21:48:02 +00:00
|
|
|
#include <set>
|
2016-11-05 20:40:14 +00:00
|
|
|
#include <string>
|
2019-05-29 09:48:22 +00:00
|
|
|
#include <utility>
|
2016-11-05 20:40:14 +00:00
|
|
|
#include <vector>
|
2011-11-11 05:00:49 +00:00
|
|
|
|
2017-04-17 20:24:44 +00:00
|
|
|
enum cmNinjaTargetDepends
|
|
|
|
{
|
|
|
|
DependOnTargetArtifact,
|
|
|
|
DependOnTargetOrdering
|
|
|
|
};
|
|
|
|
|
2019-08-23 21:25:56 +00:00
|
|
|
using cmNinjaDeps = std::vector<std::string>;
|
|
|
|
using cmNinjaOuts = std::set<std::string>;
|
2019-09-04 16:03:01 +00:00
|
|
|
using cmNinjaVars = std::map<std::string, std::string>;
|
2011-11-11 05:00:49 +00:00
|
|
|
|
2019-05-29 09:48:22 +00:00
|
|
|
class cmNinjaRule
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
cmNinjaRule(std::string name)
|
|
|
|
: Name(std::move(name))
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
std::string Name;
|
|
|
|
std::string Command;
|
|
|
|
std::string Description;
|
|
|
|
std::string Comment;
|
|
|
|
std::string DepFile;
|
|
|
|
std::string DepType;
|
|
|
|
std::string RspFile;
|
|
|
|
std::string RspContent;
|
|
|
|
std::string Restat;
|
|
|
|
bool Generator = false;
|
|
|
|
};
|
|
|
|
|
2019-05-30 09:08:56 +00:00
|
|
|
class cmNinjaBuild
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
cmNinjaBuild() = default;
|
|
|
|
cmNinjaBuild(std::string rule)
|
|
|
|
: Rule(std::move(rule))
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
std::string Comment;
|
|
|
|
std::string Rule;
|
|
|
|
cmNinjaDeps Outputs;
|
|
|
|
cmNinjaDeps ImplicitOuts;
|
|
|
|
cmNinjaDeps ExplicitDeps;
|
|
|
|
cmNinjaDeps ImplicitDeps;
|
|
|
|
cmNinjaDeps OrderOnlyDeps;
|
|
|
|
cmNinjaVars Variables;
|
|
|
|
std::string RspFile;
|
|
|
|
};
|
|
|
|
|
2011-11-11 05:00:49 +00:00
|
|
|
#endif // ! cmNinjaTypes_h
|