| 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 513 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 524 | 524 |
| 525 if 'pnacl' in toolchains: | 525 if 'pnacl' in toolchains: |
| 526 shell = platform == 'win' | 526 shell = platform == 'win' |
| 527 buildbot_common.Run( | 527 buildbot_common.Run( |
| 528 GetBuildArgs('pnacl', pnacldir, pepperdir, 'x86', '32'), | 528 GetBuildArgs('pnacl', pnacldir, pepperdir, 'x86', '32'), |
| 529 cwd=NACL_DIR, shell=shell) | 529 cwd=NACL_DIR, shell=shell) |
| 530 buildbot_common.Run( | 530 buildbot_common.Run( |
| 531 GetBuildArgs('pnacl', pnacldir, pepperdir, 'x86', '64'), | 531 GetBuildArgs('pnacl', pnacldir, pepperdir, 'x86', '64'), |
| 532 cwd=NACL_DIR, shell=shell) | 532 cwd=NACL_DIR, shell=shell) |
| 533 | 533 |
| 534 pnacl_libdir_map = {'ia32': 'x86-64', 'arm': 'arm'} | |
| 535 for arch in ('ia32', 'arm'): | 534 for arch in ('ia32', 'arm'): |
| 536 # Fill in the latest native pnacl shim library from the chrome build. | 535 # Fill in the latest native pnacl shim library from the chrome build. |
| 537 GypNinjaBuild_Pnacl('gypbuild-' + arch, arch) | 536 GypNinjaBuild_Pnacl('gypbuild-' + arch, arch) |
| 538 release_build_dir = os.path.join(OUT_DIR, 'gypbuild-' + arch, | 537 release_build_dir = os.path.join(OUT_DIR, 'gypbuild-' + arch, |
| 539 'Release', 'gen', 'sdk', 'toolchain', tcname + '_pnacl', | 538 'Release') |
| 540 'lib-' + pnacl_libdir_map[arch]) | |
| 541 | 539 |
| 540 pnacl_libdir_map = { 'ia32': 'x86-64', 'arm': 'arm' } |
| 542 buildbot_common.CopyFile( | 541 buildbot_common.CopyFile( |
| 543 os.path.join(release_build_dir, 'libpnacl_irt_shim.a'), | 542 os.path.join(release_build_dir, 'libpnacl_irt_shim.a'), |
| 544 GetPNaClNativeLib(pnacldir, pnacl_libdir_map[arch])) | 543 GetPNaClNativeLib(pnacldir, pnacl_libdir_map[arch])) |
| 545 | 544 |
| 546 InstallHeaders(GetToolchainNaClInclude('pnacl', pnacldir, 'x86'), | 545 InstallHeaders(GetToolchainNaClInclude('pnacl', pnacldir, 'x86'), |
| 547 pepper_ver, | 546 pepper_ver, |
| 548 'newlib') | 547 'newlib') |
| 549 else: | 548 else: |
| 550 buildbot_common.ErrorExit('Missing arch %s' % arch) | 549 buildbot_common.ErrorExit('Missing arch %s' % arch) |
| 551 | 550 |
| (...skipping 468 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1020 # Archive on non-trybots. | 1019 # Archive on non-trybots. |
| 1021 if options.archive or buildbot_common.IsSDKBuilder(): | 1020 if options.archive or buildbot_common.IsSDKBuilder(): |
| 1022 BuildStepArchiveBundle(pepper_ver, clnumber, tarfile) | 1021 BuildStepArchiveBundle(pepper_ver, clnumber, tarfile) |
| 1023 BuildStepArchiveSDKTools() | 1022 BuildStepArchiveSDKTools() |
| 1024 | 1023 |
| 1025 return 0 | 1024 return 0 |
| 1026 | 1025 |
| 1027 | 1026 |
| 1028 if __name__ == '__main__': | 1027 if __name__ == '__main__': |
| 1029 sys.exit(main(sys.argv)) | 1028 sys.exit(main(sys.argv)) |
| OLD | NEW |