From d45e007aa8aee275904015bee5c114e95209a6db Mon Sep 17 00:00:00 2001 From: dec05eba Date: Mon, 24 Sep 2018 15:19:56 +0200 Subject: Escape input arg, which usually is a filename --- include/ninja/Ninja.hpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'include/ninja') 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 &additionalArgs, const std::vector &dependsOnBuilds = {}); + NinjaBuild* build(const std::vector &in, const std::string &out, const std::vector &additionalArgs, const std::vector &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 in; const std::string out; const std::vector additionalArgs; const std::vector 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 &commandArgs); NinjaBuild* build(const NinjaRule *rule, const std::string &in, const std::string &out, const std::vector &additionalArgs, const std::vector &dependsOnBuilds = {}); + NinjaBuild* build(const NinjaRule *rule, const std::vector &in, const std::string &out, const std::vector &additionalArgs, const std::vector &dependsOnBuilds = {}); std::string generate() const; private: -- cgit v1.2.3