From 35544126cfd793ac8f6f2c88adeb14ab5a1df354 Mon Sep 17 00:00:00 2001 From: Scott Graham Date: Mon, 26 Mar 2012 17:36:43 -0700 Subject: add rspfile and rspfile_content to ninja_syntax --- misc/ninja_syntax.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/misc/ninja_syntax.py b/misc/ninja_syntax.py index ccb38a8..97bd82b 100644 --- a/misc/ninja_syntax.py +++ b/misc/ninja_syntax.py @@ -33,7 +33,7 @@ class Writer(object): self._line('%s = %s' % (key, value), indent) def rule(self, name, command, description=None, depfile=None, - generator=False, restat=False): + generator=False, restat=False, rspfile=None, rspfile_content=None): self._line('rule %s' % name) self.variable('command', command, indent=1) if description: @@ -44,6 +44,10 @@ class Writer(object): self.variable('generator', '1', indent=1) if restat: self.variable('restat', '1', indent=1) + if rspfile: + self.variable('rspfile', rspfile, indent=1) + if rspfile_content: + self.variable('rspfile_content', rspfile_content, indent=1) def build(self, outputs, rule, inputs=None, implicit=None, order_only=None, variables=None): -- cgit v0.12