Ninja: Add cmNinjaRule class

This commit is contained in:
Sebastian Holtermann
2019-05-29 11:48:22 +02:00
parent 45e4f470c0
commit 6a23fbce47

View File

@@ -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