| 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 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 81 | 81 |
| 82 | 82 |
| 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,simarm64,simmips,simdbc' | 91 options.arch = 'ia32,x64,simarm,simarm64,simmips,simdbc64' |
| 92 if options.mode == 'all': | 92 if options.mode == 'all': |
| 93 options.mode = 'debug,release,product' | 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 |
| (...skipping 487 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 589 else: | 589 else: |
| 590 if BuildOneConfig(options, target, target_os, | 590 if BuildOneConfig(options, target, target_os, |
| 591 mode, arch, cross_build) != 0: | 591 mode, arch, cross_build) != 0: |
| 592 return 1 | 592 return 1 |
| 593 | 593 |
| 594 return 0 | 594 return 0 |
| 595 | 595 |
| 596 | 596 |
| 597 if __name__ == '__main__': | 597 if __name__ == '__main__': |
| 598 sys.exit(Main()) | 598 sys.exit(Main()) |
| OLD | NEW |