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 re | 10 import re |
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
83 def ProcessOsOption(os_name): | 83 def ProcessOsOption(os_name): |
84 if os_name == 'host': | 84 if os_name == 'host': |
85 return HOST_OS | 85 return HOST_OS |
86 return os_name | 86 return os_name |
87 | 87 |
88 | 88 |
89 def ProcessOptions(options, args): | 89 def ProcessOptions(options, args): |
90 if options.arch == 'all': | 90 if options.arch == 'all': |
91 options.arch = 'ia32,x64,simarm,simmips,simarm64' | 91 options.arch = 'ia32,x64,simarm,simmips,simarm64' |
92 if options.mode == 'all': | 92 if options.mode == 'all': |
93 options.mode = 'release,debug' | 93 options.mode = 'debug,release,product' |
94 if options.os == 'all': | 94 if options.os == 'all': |
95 options.os = 'host,android' | 95 options.os = 'host,android' |
96 options.mode = options.mode.split(',') | 96 options.mode = options.mode.split(',') |
97 options.arch = options.arch.split(',') | 97 options.arch = options.arch.split(',') |
98 options.os = options.os.split(',') | 98 options.os = options.os.split(',') |
99 for mode in options.mode: | 99 for mode in options.mode: |
100 if not mode in ['debug', 'release', 'product']: | 100 if not mode in ['debug', 'release', 'product']: |
101 print "Unknown mode %s" % mode | 101 print "Unknown mode %s" % mode |
102 return False | 102 return False |
103 for arch in options.arch: | 103 for arch in options.arch: |
(...skipping 448 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
552 else: | 552 else: |
553 if BuildOneConfig(options, target, target_os, | 553 if BuildOneConfig(options, target, target_os, |
554 mode, arch, cross_build) != 0: | 554 mode, arch, cross_build) != 0: |
555 return 1 | 555 return 1 |
556 | 556 |
557 return 0 | 557 return 0 |
558 | 558 |
559 | 559 |
560 if __name__ == '__main__': | 560 if __name__ == '__main__': |
561 sys.exit(Main()) | 561 sys.exit(Main()) |
OLD | NEW |