diff options
-rw-r--r-- | misc/ninja_syntax.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/misc/ninja_syntax.py b/misc/ninja_syntax.py index 7fa4bf1..f924519 100644 --- a/misc/ninja_syntax.py +++ b/misc/ninja_syntax.py @@ -54,6 +54,12 @@ class Writer(object): return outputs + def include(self, path): + self._line('include %s' % path) + + def subninja(self, path): + self._line('subninja %s' % path) + def _line(self, text, indent=0): """Write 'text' word-wrapped at self.width characters.""" leading_space = ' ' * indent |