OLD | NEW |
---|---|
1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
2 # | 2 # |
3 # Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | 3 # Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file |
4 # for details. All rights reserved. Use of this source code is governed by a | 4 # for details. All rights reserved. Use of this source code is governed by a |
5 # BSD-style license that can be found in the LICENSE file. | 5 # BSD-style license that can be found in the LICENSE file. |
6 # | 6 # |
7 | 7 |
8 import optparse | 8 import optparse |
9 import os | 9 import os |
10 import shutil | 10 import shutil |
(...skipping 24 matching lines...) Expand all Loading... | |
35 result.add_option("--os", | 35 result.add_option("--os", |
36 help='Target OSs (comma-separated).', | 36 help='Target OSs (comma-separated).', |
37 metavar='[all,host,android]', | 37 metavar='[all,host,android]', |
38 default='host') | 38 default='host') |
39 result.add_option("-j", | 39 result.add_option("-j", |
40 help='The number of parallel jobs to run.', | 40 help='The number of parallel jobs to run.', |
41 metavar=HOST_CPUS, | 41 metavar=HOST_CPUS, |
42 default=str(HOST_CPUS)) | 42 default=str(HOST_CPUS)) |
43 result.add_option("--devenv", | 43 result.add_option("--devenv", |
44 help='Path containing devenv.com on Windows', | 44 help='Path containing devenv.com on Windows', |
45 default='C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\Common7\\ID E') | 45 default='C:\\Program Files (x86)\\Microsoft Visual Studio 10.0\\Common7\\I DE') |
Bob Nystrom
2012/10/15 19:01:38
Long line. Also, how about including the executabl
| |
46 return result | 46 return result |
47 | 47 |
48 | 48 |
49 def ProcessOsOption(os): | 49 def ProcessOsOption(os): |
50 if os == 'host': | 50 if os == 'host': |
51 return HOST_OS | 51 return HOST_OS |
52 return os | 52 return os |
53 | 53 |
54 | 54 |
55 def ProcessOptions(options, args): | 55 def ProcessOptions(options, args): |
(...skipping 260 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
316 process.wait() | 316 process.wait() |
317 if process.returncode != 0: | 317 if process.returncode != 0: |
318 print "BUILD FAILED" | 318 print "BUILD FAILED" |
319 return 1 | 319 return 1 |
320 | 320 |
321 return 0 | 321 return 0 |
322 | 322 |
323 | 323 |
324 if __name__ == '__main__': | 324 if __name__ == '__main__': |
325 sys.exit(Main()) | 325 sys.exit(Main()) |
OLD | NEW |