OLD | NEW |
1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
2 # | 2 # |
3 # Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 3 # Copyright (c) 2012, 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 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
52 | 52 |
53 | 53 |
54 def ProcessOsOption(os): | 54 def ProcessOsOption(os): |
55 if os == 'host': | 55 if os == 'host': |
56 return HOST_OS | 56 return HOST_OS |
57 return os | 57 return os |
58 | 58 |
59 | 59 |
60 def ProcessOptions(options, args): | 60 def ProcessOptions(options, args): |
61 if options.arch == 'all': | 61 if options.arch == 'all': |
62 options.arch = 'ia32,x64' | 62 options.arch = 'ia32,x64,simarm,simmips' |
63 if options.mode == 'all': | 63 if options.mode == 'all': |
64 options.mode = 'release,debug' | 64 options.mode = 'release,debug' |
65 if options.os == 'all': | 65 if options.os == 'all': |
66 options.os = 'host,android' | 66 options.os = 'host,android' |
67 options.mode = options.mode.split(',') | 67 options.mode = options.mode.split(',') |
68 options.arch = options.arch.split(',') | 68 options.arch = options.arch.split(',') |
69 options.os = options.os.split(',') | 69 options.os = options.os.split(',') |
70 for mode in options.mode: | 70 for mode in options.mode: |
71 if not mode in ['debug', 'release']: | 71 if not mode in ['debug', 'release']: |
72 print "Unknown mode %s" % mode | 72 print "Unknown mode %s" % mode |
(...skipping 247 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
320 process.wait() | 320 process.wait() |
321 if process.returncode != 0: | 321 if process.returncode != 0: |
322 print "BUILD FAILED" | 322 print "BUILD FAILED" |
323 return 1 | 323 return 1 |
324 | 324 |
325 return 0 | 325 return 0 |
326 | 326 |
327 | 327 |
328 if __name__ == '__main__': | 328 if __name__ == '__main__': |
329 sys.exit(Main()) | 329 sys.exit(Main()) |
OLD | NEW |