projects
/
platform
/
upstream
/
ninja.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
873abda
)
add 'default' keyword to python module
author
Evan Martin
<martine@danga.com>
Tue, 6 Sep 2011 19:59:47 +0000
(12:59 -0700)
committer
Evan Martin
<martine@danga.com>
Tue, 6 Sep 2011 19:59:47 +0000
(12:59 -0700)
misc/ninja_syntax.py
patch
|
blob
|
history
diff --git
a/misc/ninja_syntax.py
b/misc/ninja_syntax.py
index
f924519
..
ba7b55b
100644
(file)
--- 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