summaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorSebastian Holtermann <sebholt@xwmw.org>2019-05-29 09:48:22 (GMT)
committerSebastian Holtermann <sebholt@xwmw.org>2019-05-29 10:59:31 (GMT)
commit6a23fbce47294e746c15ee851dc3460a3a17da2b (patch)
tree89daac242722a091ff830179d941de7a9bfb6fc9 /Source
parent45e4f470c02b16622c281371d30ecc0f7d71e5c6 (diff)
downloadCMake-6a23fbce47294e746c15ee851dc3460a3a17da2b.zip
CMake-6a23fbce47294e746c15ee851dc3460a3a17da2b.tar.gz
CMake-6a23fbce47294e746c15ee851dc3460a3a17da2b.tar.bz2
Ninja: Add cmNinjaRule class
Diffstat (limited to 'Source')
-rw-r--r--Source/cmNinjaTypes.h21
1 files changed, 21 insertions, 0 deletions
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 <map>
#include <set>
#include <string>
+#include <utility>
#include <vector>
enum cmNinjaTargetDepends
@@ -20,4 +21,24 @@ typedef std::vector<std::string> cmNinjaDeps;
typedef std::set<std::string> cmNinjaOuts;
typedef std::map<std::string, std::string> 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