OLD | NEW |
1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
2 # | 2 # |
3 # Copyright 2010 Google Inc. All Rights Reserved. | 3 # Copyright 2010 Google Inc. All Rights Reserved. |
4 | 4 |
5 # This file is used by the buildbot. | 5 # This file is used by the buildbot. |
6 | 6 |
7 import optparse | 7 import optparse |
8 import os.path | 8 import os.path |
9 import utils | 9 import utils |
10 | 10 |
11 ALL_TARGETS = [ | 11 ALL_TARGETS = [ |
12 'content_shell', | 12 'content_shell', |
13 'chrome', | 13 'chrome', |
14 'blink_tests', | 14 'blink_tests', |
15 'pkg_packages', | |
16 ] | 15 ] |
17 | 16 |
18 def main(): | 17 def main(): |
19 parser = optparse.OptionParser() | 18 parser = optparse.OptionParser() |
20 parser.add_option('--target', dest='target', | 19 parser.add_option('--target', dest='target', |
21 default='all', | 20 default='all', |
22 action='store', type='string', | 21 action='store', type='string', |
23 help='Target (%s)' % ', '.join(ALL_TARGETS)) | 22 help='Target (%s)' % ', '.join(ALL_TARGETS)) |
24 parser.add_option('--mode', dest='mode', | 23 parser.add_option('--mode', dest='mode', |
25 action='store', type='string', | 24 action='store', type='string', |
(...skipping 22 matching lines...) Expand all Loading... |
48 utils.runCommand(['rm', '-rf', 'out']) | 47 utils.runCommand(['rm', '-rf', 'out']) |
49 | 48 |
50 utils.runCommand(['ninja', | 49 utils.runCommand(['ninja', |
51 '-j%s' % jobs, | 50 '-j%s' % jobs, |
52 '-C', | 51 '-C', |
53 os.path.join('out', mode)] | 52 os.path.join('out', mode)] |
54 + targets) | 53 + targets) |
55 | 54 |
56 if __name__ == '__main__': | 55 if __name__ == '__main__': |
57 main() | 56 main() |
OLD | NEW |