| 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 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 112 return False | 112 return False |
| 113 if 'v8' in args: | 113 if 'v8' in args: |
| 114 print "The v8 target is not supported for android builds." | 114 print "The v8 target is not supported for android builds." |
| 115 return False | 115 return False |
| 116 return True | 116 return True |
| 117 | 117 |
| 118 | 118 |
| 119 def SetTools(arch, toolchainprefix): | 119 def SetTools(arch, toolchainprefix): |
| 120 toolsOverride = None | 120 toolsOverride = None |
| 121 if arch == 'arm' and toolchainprefix == None: | 121 if arch == 'arm' and toolchainprefix == None: |
| 122 # Here, we specify the hf compiler. If this changes, we must also remove |
| 123 # the ARM_FLOAT_ABI_HARD define in configurations_make.gypi. |
| 122 toolchainprefix = (DEFAULT_ARM_CROSS_COMPILER_PATH + | 124 toolchainprefix = (DEFAULT_ARM_CROSS_COMPILER_PATH + |
| 123 "/bin/arm-linux-gnueabihf") | 125 "/bin/arm-linux-gnueabihf") |
| 124 if toolchainprefix: | 126 if toolchainprefix: |
| 125 toolsOverride = { | 127 toolsOverride = { |
| 126 "CC.target" : toolchainprefix + "-gcc", | 128 "CC.target" : toolchainprefix + "-gcc", |
| 127 "CXX.target" : toolchainprefix + "-g++", | 129 "CXX.target" : toolchainprefix + "-g++", |
| 128 "AR.target" : toolchainprefix + "-ar", | 130 "AR.target" : toolchainprefix + "-ar", |
| 129 "LINK.target": toolchainprefix + "-g++", | 131 "LINK.target": toolchainprefix + "-g++", |
| 130 "NM.target" : toolchainprefix + "-nm", | 132 "NM.target" : toolchainprefix + "-nm", |
| 131 } | 133 } |
| (...skipping 317 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 449 process.wait() | 451 process.wait() |
| 450 if process.returncode != 0: | 452 if process.returncode != 0: |
| 451 print "BUILD FAILED" | 453 print "BUILD FAILED" |
| 452 return 1 | 454 return 1 |
| 453 | 455 |
| 454 return 0 | 456 return 0 |
| 455 | 457 |
| 456 | 458 |
| 457 if __name__ == '__main__': | 459 if __name__ == '__main__': |
| 458 sys.exit(Main()) | 460 sys.exit(Main()) |
| OLD | NEW |