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 'chromedriver' |
15 ] | 16 ] |
16 | 17 |
17 def main(): | 18 def main(): |
18 parser = optparse.OptionParser() | 19 parser = optparse.OptionParser() |
19 parser.add_option('--target', dest='target', | 20 parser.add_option('--target', dest='target', |
20 default='all', | 21 default='all', |
21 action='store', type='string', | 22 action='store', type='string', |
22 help='Target (%s)' % ', '.join(ALL_TARGETS)) | 23 help='Target (%s)' % ', '.join(ALL_TARGETS)) |
23 parser.add_option('--mode', dest='mode', | 24 parser.add_option('--mode', dest='mode', |
24 action='store', type='string', | 25 action='store', type='string', |
(...skipping 22 matching lines...) Expand all Loading... |
47 utils.runCommand(['rm', '-rf', 'out']) | 48 utils.runCommand(['rm', '-rf', 'out']) |
48 | 49 |
49 utils.runCommand(['ninja', | 50 utils.runCommand(['ninja', |
50 '-j%s' % jobs, | 51 '-j%s' % jobs, |
51 '-C', | 52 '-C', |
52 os.path.join('out', mode)] | 53 os.path.join('out', mode)] |
53 + targets) | 54 + targets) |
54 | 55 |
55 if __name__ == '__main__': | 56 if __name__ == '__main__': |
56 main() | 57 main() |
OLD | NEW |