diff options
author | Evan Martin <martine@danga.com> | 2011-09-06 19:59:47 (GMT) |
---|---|---|
committer | Evan Martin <martine@danga.com> | 2011-09-06 19:59:47 (GMT) |
commit | 3becb3bbf50aec1f8483ea2f276da2afe0312f05 (patch) | |
tree | 570ea74ca96fe4fd1d21bbcd15138c2e100475f3 | |
parent | 873abda30192cc644253dee5130e59c62233ee04 (diff) | |
download | Ninja-3becb3bbf50aec1f8483ea2f276da2afe0312f05.zip Ninja-3becb3bbf50aec1f8483ea2f276da2afe0312f05.tar.gz Ninja-3becb3bbf50aec1f8483ea2f276da2afe0312f05.tar.bz2 |
add 'default' keyword to python module
-rw-r--r-- | misc/ninja_syntax.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/misc/ninja_syntax.py b/misc/ninja_syntax.py index f924519..ba7b55b 100644 --- a/misc/ninja_syntax.py +++ b/misc/ninja_syntax.py @@ -60,6 +60,9 @@ class Writer(object): def subninja(self, path): self._line('subninja %s' % path) + def default(self, paths): + self._line('default %s' % ' '.join(self._as_list(paths))) + def _line(self, text, indent=0): """Write 'text' word-wrapped at self.width characters.""" leading_space = ' ' * indent |