| 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 357 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 368 pepper_ver, | 368 pepper_ver, |
| 369 'glibc') | 369 'glibc') |
| 370 | 370 |
| 371 if 'pnacl' in toolchains: | 371 if 'pnacl' in toolchains: |
| 372 buildbot_common.Run( | 372 buildbot_common.Run( |
| 373 GetBuildArgs('pnacl', pnacldir, pepperdir, 'x86', '32'), | 373 GetBuildArgs('pnacl', pnacldir, pepperdir, 'x86', '32'), |
| 374 cwd=NACL_DIR, shell=(platform=='win')) | 374 cwd=NACL_DIR, shell=(platform=='win')) |
| 375 buildbot_common.Run( | 375 buildbot_common.Run( |
| 376 GetBuildArgs('pnacl', pnacldir, pepperdir, 'x86', '64'), | 376 GetBuildArgs('pnacl', pnacldir, pepperdir, 'x86', '64'), |
| 377 cwd=NACL_DIR, shell=(platform=='win')) | 377 cwd=NACL_DIR, shell=(platform=='win')) |
| 378 # Pnacl libraries are typically bitcode, but some are native and | 378 # Get pnacl irt shim from chrome build. |
| 379 # will be looked up in the native library directory. | 379 buildbot_common.Copy( |
| 380 buildbot_common.Move( | 380 os.path.join(OUT_DIR, 'Release', 'libpnacl_irt_shim.a'), |
| 381 os.path.join(GetToolchainNaClLib('pnacl', pnacldir, 'x86', '64'), | |
| 382 'libpnacl_irt_shim.a'), | |
| 383 GetPNaClNativeLib(pnacldir, 'x86-64')) | 381 GetPNaClNativeLib(pnacldir, 'x86-64')) |
| 384 InstallHeaders(GetToolchainNaClInclude('pnacl', pnacldir, 'x86'), | 382 InstallHeaders(GetToolchainNaClInclude('pnacl', pnacldir, 'x86'), |
| 385 pepper_ver, | 383 pepper_ver, |
| 386 'newlib') | 384 'newlib') |
| 387 else: | 385 else: |
| 388 buildbot_common.ErrorExit('Missing arch %s' % arch) | 386 buildbot_common.ErrorExit('Missing arch %s' % arch) |
| 389 | 387 |
| 390 | 388 |
| 391 def BuildStepCopyBuildHelpers(pepperdir, platform): | 389 def BuildStepCopyBuildHelpers(pepperdir, platform): |
| 392 buildbot_common.BuildStep('Copy build helpers') | 390 buildbot_common.BuildStep('Copy build helpers') |
| (...skipping 439 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 832 # Archive on non-trybots. | 830 # Archive on non-trybots. |
| 833 if options.archive or buildbot_common.IsSDKBuilder(): | 831 if options.archive or buildbot_common.IsSDKBuilder(): |
| 834 BuildStepArchiveBundle(pepper_ver, clnumber, tarfile) | 832 BuildStepArchiveBundle(pepper_ver, clnumber, tarfile) |
| 835 BuildStepArchiveSDKTools() | 833 BuildStepArchiveSDKTools() |
| 836 | 834 |
| 837 return 0 | 835 return 0 |
| 838 | 836 |
| 839 | 837 |
| 840 if __name__ == '__main__': | 838 if __name__ == '__main__': |
| 841 sys.exit(main(sys.argv)) | 839 sys.exit(main(sys.argv)) |
| OLD | NEW |