OLD | NEW |
1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
2 # Copyright (c) 2012 The Chromium Authors. All rights reserved. | 2 # Copyright (c) 2012 The Chromium Authors. All rights reserved. |
3 # Use of this source code is governed by a BSD-style license that can be | 3 # Use of this source code is governed by a BSD-style license that can be |
4 # found in the LICENSE file. | 4 # found in the LICENSE file. |
5 | 5 |
6 """Entry point for both build and try bots. | 6 """Entry point for both build and try bots. |
7 | 7 |
8 This script is invoked from XXX, usually without arguments | 8 This script is invoked from XXX, usually without arguments |
9 to package an SDK. It automatically determines whether | 9 to package an SDK. It automatically determines whether |
10 this SDK is for mac, win, linux. | 10 this SDK is for mac, win, linux. |
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
120 def GetGypBuiltLib(tcname, arch): | 120 def GetGypBuiltLib(tcname, arch): |
121 if arch == 'ia32': | 121 if arch == 'ia32': |
122 lib_suffix = '32' | 122 lib_suffix = '32' |
123 elif arch == 'x64': | 123 elif arch == 'x64': |
124 lib_suffix = '64' | 124 lib_suffix = '64' |
125 elif arch == 'arm': | 125 elif arch == 'arm': |
126 lib_suffix = 'arm' | 126 lib_suffix = 'arm' |
127 else: | 127 else: |
128 lib_suffix = '' | 128 lib_suffix = '' |
129 | 129 |
130 tcdir = 'tc_' + GetToolchainLibc(tcname) | 130 if tcname == 'arm_bionic': |
| 131 tcdir = 'tc_newlib' |
| 132 else: |
| 133 tcdir = 'tc_' + GetToolchainLibc(tcname) |
131 | 134 |
132 if tcname == 'pnacl': | 135 if tcname == 'pnacl': |
133 if arch is None: | 136 if arch is None: |
134 lib_suffix = '' | 137 lib_suffix = '' |
135 tcdir = 'tc_pnacl_newlib' | 138 tcdir = 'tc_pnacl_newlib' |
136 arch = 'x64' | 139 arch = 'x64' |
137 else: | 140 else: |
138 arch = 'clang-' + arch | 141 arch = 'clang-' + arch |
139 | 142 |
140 return os.path.join(GetNinjaOutDir(arch), 'gen', tcdir, 'lib' + lib_suffix) | 143 return os.path.join(GetNinjaOutDir(arch), 'gen', tcdir, 'lib' + lib_suffix) |
(...skipping 1017 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1158 BuildStepArchivePNaClComponent(chrome_revision) | 1161 BuildStepArchivePNaClComponent(chrome_revision) |
1159 | 1162 |
1160 return 0 | 1163 return 0 |
1161 | 1164 |
1162 | 1165 |
1163 if __name__ == '__main__': | 1166 if __name__ == '__main__': |
1164 try: | 1167 try: |
1165 sys.exit(main(sys.argv[1:])) | 1168 sys.exit(main(sys.argv[1:])) |
1166 except KeyboardInterrupt: | 1169 except KeyboardInterrupt: |
1167 buildbot_common.ErrorExit('build_sdk: interrupted') | 1170 buildbot_common.ErrorExit('build_sdk: interrupted') |
OLD | NEW |