Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(138)

Side by Side Diff: tools/build.py

Issue 1077823002: Adds a simarmv5te build and test target. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 5 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « third_party/pkg_tested/pkg_tested.status ('k') | tools/gyp/configurations.gypi » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
48 result = optparse.OptionParser(usage=usage) 48 result = optparse.OptionParser(usage=usage)
49 result.add_option("-m", "--mode", 49 result.add_option("-m", "--mode",
50 help='Build variants (comma-separated).', 50 help='Build variants (comma-separated).',
51 metavar='[all,debug,release]', 51 metavar='[all,debug,release]',
52 default='debug') 52 default='debug')
53 result.add_option("-v", "--verbose", 53 result.add_option("-v", "--verbose",
54 help='Verbose output.', 54 help='Verbose output.',
55 default=False, action="store_true") 55 default=False, action="store_true")
56 result.add_option("-a", "--arch", 56 result.add_option("-a", "--arch",
57 help='Target architectures (comma-separated).', 57 help='Target architectures (comma-separated).',
58 metavar='[all,ia32,x64,simarm,arm,armv5te,simmips,mips,simarm64,arm64,]', 58 metavar='[all,ia32,x64,simarm,arm,simarmv5te,armv5te,simmips,mips'
59 ',simarm64,arm64,]',
59 default=utils.GuessArchitecture()) 60 default=utils.GuessArchitecture())
60 result.add_option("--os", 61 result.add_option("--os",
61 help='Target OSs (comma-separated).', 62 help='Target OSs (comma-separated).',
62 metavar='[all,host,android]', 63 metavar='[all,host,android]',
63 default='host') 64 default='host')
64 result.add_option("-t", "--toolchain", 65 result.add_option("-t", "--toolchain",
65 help='Cross-compiler toolchain path', 66 help='Cross-compiler toolchain path',
66 default=None) 67 default=None)
67 result.add_option("-j", 68 result.add_option("-j",
68 help='The number of parallel jobs to run.', 69 help='The number of parallel jobs to run.',
(...skipping 29 matching lines...) Expand all
98 if options.os == 'all': 99 if options.os == 'all':
99 options.os = 'host,android' 100 options.os = 'host,android'
100 options.mode = options.mode.split(',') 101 options.mode = options.mode.split(',')
101 options.arch = options.arch.split(',') 102 options.arch = options.arch.split(',')
102 options.os = options.os.split(',') 103 options.os = options.os.split(',')
103 for mode in options.mode: 104 for mode in options.mode:
104 if not mode in ['debug', 'release']: 105 if not mode in ['debug', 'release']:
105 print "Unknown mode %s" % mode 106 print "Unknown mode %s" % mode
106 return False 107 return False
107 for arch in options.arch: 108 for arch in options.arch:
108 archs = ['ia32', 'x64', 'simarm', 'arm', 'armv5te', 'simmips', 'mips', 109 archs = ['ia32', 'x64', 'simarm', 'arm', 'simarmv5te', 'armv5te', 'simmips',
109 'simarm64', 'arm64',] 110 'mips', 'simarm64', 'arm64',]
110 if not arch in archs: 111 if not arch in archs:
111 print "Unknown arch %s" % arch 112 print "Unknown arch %s" % arch
112 return False 113 return False
113 options.os = [ProcessOsOption(os_name) for os_name in options.os] 114 options.os = [ProcessOsOption(os_name) for os_name in options.os]
114 for os_name in options.os: 115 for os_name in options.os:
115 if not os_name in ['android', 'freebsd', 'linux', 'macos', 'win32']: 116 if not os_name in ['android', 'freebsd', 'linux', 'macos', 'win32']:
116 print "Unknown os %s" % os_name 117 print "Unknown os %s" % os_name
117 return False 118 return False
118 if os_name != HOST_OS: 119 if os_name != HOST_OS:
119 if os_name != 'android': 120 if os_name != 'android':
(...skipping 436 matching lines...) Expand 10 before | Expand all | Expand 10 after
556 else: 557 else:
557 if BuildOneConfig(options, target, target_os, 558 if BuildOneConfig(options, target, target_os,
558 mode, arch, cross_build) != 0: 559 mode, arch, cross_build) != 0:
559 return 1 560 return 1
560 561
561 return 0 562 return 0
562 563
563 564
564 if __name__ == '__main__': 565 if __name__ == '__main__':
565 sys.exit(Main()) 566 sys.exit(Main())
OLDNEW
« no previous file with comments | « third_party/pkg_tested/pkg_tested.status ('k') | tools/gyp/configurations.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698