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 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
107 options.mode = options.mode.split(',') | 107 options.mode = options.mode.split(',') |
108 options.arch = options.arch.split(',') | 108 options.arch = options.arch.split(',') |
109 options.os = options.os.split(',') | 109 options.os = options.os.split(',') |
110 for mode in options.mode: | 110 for mode in options.mode: |
111 if not mode in ['debug', 'release', 'product']: | 111 if not mode in ['debug', 'release', 'product']: |
112 print "Unknown mode %s" % mode | 112 print "Unknown mode %s" % mode |
113 return False | 113 return False |
114 for arch in options.arch: | 114 for arch in options.arch: |
115 archs = ['ia32', 'x64', 'simarm', 'arm', 'simarmv6', 'armv6', | 115 archs = ['ia32', 'x64', 'simarm', 'arm', 'simarmv6', 'armv6', |
116 'simarmv5te', 'armv5te', 'simmips', 'mips', 'simarm64', 'arm64', | 116 'simarmv5te', 'armv5te', 'simmips', 'mips', 'simarm64', 'arm64', |
117 'simdbc', 'simdbc64', 'armsimdbc'] | 117 'simdbc', 'simdbc64', 'armsimdbc', 'armsimdbc64'] |
118 if not arch in archs: | 118 if not arch in archs: |
119 print "Unknown arch %s" % arch | 119 print "Unknown arch %s" % arch |
120 return False | 120 return False |
121 options.os = [ProcessOsOption(os_name) for os_name in options.os] | 121 options.os = [ProcessOsOption(os_name) for os_name in options.os] |
122 for os_name in options.os: | 122 for os_name in options.os: |
123 if not os_name in ['android', 'freebsd', 'linux', 'macos', 'win32']: | 123 if not os_name in ['android', 'freebsd', 'linux', 'macos', 'win32']: |
124 print "Unknown os %s" % os_name | 124 print "Unknown os %s" % os_name |
125 return False | 125 return False |
126 if os_name != HOST_OS: | 126 if os_name != HOST_OS: |
127 if os_name != 'android': | 127 if os_name != 'android': |
(...skipping 481 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
609 else: | 609 else: |
610 if BuildOneConfig(options, target, target_os, | 610 if BuildOneConfig(options, target, target_os, |
611 mode, arch, cross_build) != 0: | 611 mode, arch, cross_build) != 0: |
612 return 1 | 612 return 1 |
613 | 613 |
614 return 0 | 614 return 0 |
615 | 615 |
616 | 616 |
617 if __name__ == '__main__': | 617 if __name__ == '__main__': |
618 sys.exit(Main()) | 618 sys.exit(Main()) |
OLD | NEW |