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

Side by Side Diff: tools/build.py

Issue 192543002: - Enable automatic cross-builds across ARM and MIPS architectures. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 years, 9 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 | « no previous file | 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 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
98 print "Unknown os %s" % os 98 print "Unknown os %s" % os
99 return False 99 return False
100 if os != HOST_OS: 100 if os != HOST_OS:
101 if os != 'android': 101 if os != 'android':
102 print "Unsupported target os %s" % os 102 print "Unsupported target os %s" % os
103 return False 103 return False
104 if not HOST_OS in ['linux']: 104 if not HOST_OS in ['linux']:
105 print ("Cross-compilation to %s is not supported on host os %s." 105 print ("Cross-compilation to %s is not supported on host os %s."
106 % (os, HOST_OS)) 106 % (os, HOST_OS))
107 return False 107 return False
108 if not arch in ['ia32', 'arm']: 108 if not arch in ['ia32', 'arm', 'mips']:
109 print ("Cross-compilation to %s is not supported for architecture %s." 109 print ("Cross-compilation to %s is not supported for architecture %s."
110 % (os, arch)) 110 % (os, arch))
111 return False 111 return False
112 # We have not yet tweaked the v8 dart build to work with the Android 112 # We have not yet tweaked the v8 dart build to work with the Android
113 # NDK/SDK, so don't try to build it. 113 # NDK/SDK, so don't try to build it.
114 if args == []: 114 if args == []:
115 print "For android builds you must specify a target, such as 'runtime'." 115 print "For android builds you must specify a target, such as 'runtime'."
116 return False 116 return False
117 if 'v8' in args:
118 print "The v8 target is not supported for android builds."
119 return False
120 return True 117 return True
121 118
122 119
123 def SetTools(arch, target_os, toolchainprefix): 120 def SetTools(arch, target_os, toolchainprefix):
124 toolsOverride = None 121 toolsOverride = None
125 122
126 # For Android, by default use the toolchain from third_party/android_tools. 123 # For Android, by default use the toolchain from third_party/android_tools.
127 if target_os == 'android' and toolchainprefix == None: 124 if target_os == 'android' and toolchainprefix == None:
128 android_toolchain = GetAndroidToolchainDir(HOST_OS, arch) 125 android_toolchain = GetAndroidToolchainDir(HOST_OS, arch)
129 if arch == 'arm': 126 if arch == 'arm':
(...skipping 278 matching lines...) Expand 10 before | Expand all | Expand 10 after
408 process.wait() 405 process.wait()
409 if process.returncode != 0: 406 if process.returncode != 0:
410 print "BUILD FAILED" 407 print "BUILD FAILED"
411 return 1 408 return 1
412 409
413 return 0 410 return 0
414 411
415 412
416 if __name__ == '__main__': 413 if __name__ == '__main__':
417 sys.exit(Main()) 414 sys.exit(Main())
OLDNEW
« no previous file with comments | « no previous file | tools/gyp/configurations.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698