Chromium Code Reviews| 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 120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 131 TOOLCHAIN_PACKAGE_MAP[toolchain][0]) | 131 TOOLCHAIN_PACKAGE_MAP[toolchain][0]) |
| 132 return GetToolchainNaClLib(tcname, tcpath, xarch) | 132 return GetToolchainNaClLib(tcname, tcpath, xarch) |
| 133 | 133 |
| 134 | 134 |
| 135 def GetOutputToolchainLib(pepperdir, tcname, xarch): | 135 def GetOutputToolchainLib(pepperdir, tcname, xarch): |
| 136 tcpath = os.path.join(pepperdir, 'toolchain', | 136 tcpath = os.path.join(pepperdir, 'toolchain', |
| 137 GetToolchainDirName(tcname, xarch)) | 137 GetToolchainDirName(tcname, xarch)) |
| 138 return GetToolchainNaClLib(tcname, tcpath, xarch) | 138 return GetToolchainNaClLib(tcname, tcpath, xarch) |
| 139 | 139 |
| 140 | 140 |
| 141 def GetPNaClNativeLib(tcpath, arch): | 141 def GetPNaClNativeLib(tcpath, arch): |
|
Sam Clegg
2014/10/15 23:32:47
This function should probably be renamed now.
Als
binji
2014/10/15 23:58:46
Done.
| |
| 142 if arch not in ['arm', 'x86-32', 'x86-64']: | 142 if arch not in ['arm', 'x86-32', 'x86-64']: |
| 143 buildbot_common.ErrorExit('Unknown architecture %s.' % arch) | 143 buildbot_common.ErrorExit('Unknown architecture %s.' % arch) |
| 144 return os.path.join(tcpath, 'lib-' + arch) | 144 return os.path.join(tcpath, 'translator', arch, 'lib') |
| 145 | 145 |
| 146 | 146 |
| 147 def BuildStepDownloadToolchains(toolchains): | 147 def BuildStepDownloadToolchains(toolchains): |
| 148 buildbot_common.BuildStep('Running package_version.py') | 148 buildbot_common.BuildStep('Running package_version.py') |
| 149 args = [sys.executable, PKGVER, '--exclude', 'arm_trusted'] | 149 args = [sys.executable, PKGVER, '--exclude', 'arm_trusted'] |
| 150 if 'bionic' in toolchains: | 150 if 'bionic' in toolchains: |
| 151 build_platform = '%s_x86' % getos.GetPlatform() | 151 build_platform = '%s_x86' % getos.GetPlatform() |
| 152 args.extend(['--append', os.path.join(build_platform, 'nacl_arm_bionic')]) | 152 args.extend(['--append', os.path.join(build_platform, 'nacl_arm_bionic')]) |
| 153 args.append('sync') | 153 args.append('sync') |
| 154 buildbot_common.Run(args, cwd=NACL_DIR) | 154 buildbot_common.Run(args, cwd=NACL_DIR) |
| (...skipping 900 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1055 BuildStepArchiveSDKTools() | 1055 BuildStepArchiveSDKTools() |
| 1056 | 1056 |
| 1057 return 0 | 1057 return 0 |
| 1058 | 1058 |
| 1059 | 1059 |
| 1060 if __name__ == '__main__': | 1060 if __name__ == '__main__': |
| 1061 try: | 1061 try: |
| 1062 sys.exit(main(sys.argv)) | 1062 sys.exit(main(sys.argv)) |
| 1063 except KeyboardInterrupt: | 1063 except KeyboardInterrupt: |
| 1064 buildbot_common.ErrorExit('build_sdk: interrupted') | 1064 buildbot_common.ErrorExit('build_sdk: interrupted') |
| OLD | NEW |