aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2018-09-24 15:19:56 +0200
committerdec05eba <dec05eba@protonmail.com>2020-07-06 07:28:02 +0200
commitd45e007aa8aee275904015bee5c114e95209a6db (patch)
treeb8b384f1048c6d5645dab74324eb5393d3350442 /include
parenta64df87aa0cb30d3bbc755fc97eb782388b35b77 (diff)
Escape input arg, which usually is a filename
Diffstat (limited to 'include')
-rw-r--r--include/ninja/Ninja.hpp5
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: