From 6a23fbce47294e746c15ee851dc3460a3a17da2b Mon Sep 17 00:00:00 2001 From: Sebastian Holtermann Date: Wed, 29 May 2019 11:48:22 +0200 Subject: Ninja: Add cmNinjaRule class --- Source/cmNinjaTypes.h | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/Source/cmNinjaTypes.h b/Source/cmNinjaTypes.h index 9e962f1..78f3917 100644 --- a/Source/cmNinjaTypes.h +++ b/Source/cmNinjaTypes.h @@ -8,6 +8,7 @@ #include #include #include +#include #include enum cmNinjaTargetDepends @@ -20,4 +21,24 @@ typedef std::vector cmNinjaDeps; typedef std::set cmNinjaOuts; typedef std::map cmNinjaVars; +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; +}; + #endif // ! cmNinjaTypes_h -- cgit v0.12