diff options
author | dec05eba <0xdec05eba@gmail.com> | 2018-09-24 15:19:56 +0200 |
---|---|---|
committer | dec05eba <0xdec05eba@gmail.com> | 2018-09-24 15:25:04 +0200 |
commit | 0ebcfc62e435d352b4a2035ac1791b867228194d (patch) | |
tree | 9ac0ec31283ab4e67b60df60edc88bb6e8b310d3 /include/ninja | |
parent | 2698cbc14f8a2a108a3252f03e053cb47b8b5101 (diff) |
Escape input arg, which usually is a filename
Diffstat (limited to 'include/ninja')
-rw-r--r-- | include/ninja/Ninja.hpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/include/ninja/Ninja.hpp b/include/ninja/Ninja.hpp index d0e3d50..3fed138 100644 --- a/include/ninja/Ninja.hpp +++ b/include/ninja/Ninja.hpp @@ -77,10 +77,12 @@ namespace ninja public: NinjaRule(NinjaBuildFile *buildFile, const std::string &name, const std::string &command); NinjaBuild* build(const std::string &in, const std::string &out, const std::vector<ninja::NinjaArgValue> &additionalArgs, const std::vector<NinjaBuild*> &dependsOnBuilds = {}); + NinjaBuild* build(const std::vector<std::string> &in, const std::string &out, const std::vector<ninja::NinjaArgValue> &additionalArgs, const std::vector<NinjaBuild*> &dependsOnBuilds = {}); const std::string name; const std::string command; std::string depFile; + std::string deps; private: NinjaBuildFile *buildFile; }; @@ -88,7 +90,7 @@ namespace ninja struct NinjaBuild { const NinjaRule *rule; - const std::string in; + const std::vector<std::string> in; const std::string out; const std::vector<ninja::NinjaArgValue> additionalArgs; const std::vector<NinjaBuild*> dependsOnBuilds; @@ -103,6 +105,7 @@ namespace ninja void defineGlobalVariable(const std::string &name, const std::string &value); NinjaRule* createRule(const std::string &name, const std::vector<NinjaArg> &commandArgs); NinjaBuild* build(const NinjaRule *rule, const std::string &in, const std::string &out, const std::vector<ninja::NinjaArgValue> &additionalArgs, const std::vector<NinjaBuild*> &dependsOnBuilds = {}); + NinjaBuild* build(const NinjaRule *rule, const std::vector<std::string> &in, const std::string &out, const std::vector<ninja::NinjaArgValue> &additionalArgs, const std::vector<NinjaBuild*> &dependsOnBuilds = {}); std::string generate() const; private: |