| 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,simmips,simarm64' |   91     options.arch = 'ia32,x64,simarm,simarm64,simmips,simdbc' | 
|   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 456 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  558           else: |  558           else: | 
|  559             if BuildOneConfig(options, target, target_os, |  559             if BuildOneConfig(options, target, target_os, | 
|  560                               mode, arch, cross_build) != 0: |  560                               mode, arch, cross_build) != 0: | 
|  561               return 1 |  561               return 1 | 
|  562  |  562  | 
|  563   return 0 |  563   return 0 | 
|  564  |  564  | 
|  565  |  565  | 
|  566 if __name__ == '__main__': |  566 if __name__ == '__main__': | 
|  567   sys.exit(Main()) |  567   sys.exit(Main()) | 
| OLD | NEW |