From 679305757e68861885f1e5c819625d2f0bca6c0b Mon Sep 17 00:00:00 2001 From: Evan Martin Date: Mon, 29 Aug 2011 11:19:22 -0700 Subject: ninja_syntax.py: add include and subninja --- misc/ninja_syntax.py | 6 ++++++ 1 file changed, 6 insertions(+) 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 -- cgit v0.12