| 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 447 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 458 raise AssertionError('unexpected toolchain value: %s' % tc) | 458 raise AssertionError('unexpected toolchain value: %s' % tc) |
| 459 | 459 |
| 460 for xarch in xarches: | 460 for xarch in xarches: |
| 461 src_dir = GetGypBuiltLib(tc, xarch) | 461 src_dir = GetGypBuiltLib(tc, xarch) |
| 462 dst_dir = GetOutputToolchainLib(pepperdir, tc, xarch) | 462 dst_dir = GetOutputToolchainLib(pepperdir, tc, xarch) |
| 463 libc = GetToolchainLibc(tc) | 463 libc = GetToolchainLibc(tc) |
| 464 InstallFiles(src_dir, dst_dir, TOOLCHAIN_LIBS[libc]) | 464 InstallFiles(src_dir, dst_dir, TOOLCHAIN_LIBS[libc]) |
| 465 | 465 |
| 466 | 466 |
| 467 def GypNinjaBuild_NaCl(rel_out_dir): | 467 def GypNinjaBuild_NaCl(rel_out_dir): |
| 468 # TODO(binji): gyp_nacl doesn't build properly on Windows anymore; it only | 468 gyp_py = os.path.join(NACL_DIR, 'build', 'gyp_nacl') |
| 469 # can use VS2010, not VS2013 which is now required by the Chromium repo. NaCl | |
| 470 # needs to be updated to perform the same logic as Chromium in detecting VS, | |
| 471 # which can now exist in the depot_tools directory. | |
| 472 # See https://code.google.com/p/nativeclient/issues/detail?id=4022 | |
| 473 # | |
| 474 # For now, let's use gyp_chromium to build these components. | |
| 475 # gyp_py = os.path.join(NACL_DIR, 'build', 'gyp_nacl') | |
| 476 gyp_py = os.path.join(SRC_DIR, 'build', 'gyp_chromium') | |
| 477 nacl_core_sdk_gyp = os.path.join(NACL_DIR, 'build', 'nacl_core_sdk.gyp') | 469 nacl_core_sdk_gyp = os.path.join(NACL_DIR, 'build', 'nacl_core_sdk.gyp') |
| 478 all_gyp = os.path.join(NACL_DIR, 'build', 'all.gyp') | 470 all_gyp = os.path.join(NACL_DIR, 'build', 'all.gyp') |
| 479 | 471 |
| 480 out_dir_32 = MakeNinjaRelPath(rel_out_dir + '-ia32') | 472 out_dir_32 = MakeNinjaRelPath(rel_out_dir + '-ia32') |
| 481 out_dir_64 = MakeNinjaRelPath(rel_out_dir + '-x64') | 473 out_dir_64 = MakeNinjaRelPath(rel_out_dir + '-x64') |
| 482 out_dir_arm = MakeNinjaRelPath(rel_out_dir + '-arm') | 474 out_dir_arm = MakeNinjaRelPath(rel_out_dir + '-arm') |
| 483 out_dir_clang_32 = MakeNinjaRelPath(rel_out_dir + '-clang-ia32') | 475 out_dir_clang_32 = MakeNinjaRelPath(rel_out_dir + '-clang-ia32') |
| 484 out_dir_clang_64 = MakeNinjaRelPath(rel_out_dir + '-clang-x64') | 476 out_dir_clang_64 = MakeNinjaRelPath(rel_out_dir + '-clang-x64') |
| 485 out_dir_clang_arm = MakeNinjaRelPath(rel_out_dir + '-clang-arm') | 477 out_dir_clang_arm = MakeNinjaRelPath(rel_out_dir + '-clang-arm') |
| 486 | 478 |
| (...skipping 591 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1078 BuildStepArchivePNaClComponent(chrome_revision) | 1070 BuildStepArchivePNaClComponent(chrome_revision) |
| 1079 | 1071 |
| 1080 return 0 | 1072 return 0 |
| 1081 | 1073 |
| 1082 | 1074 |
| 1083 if __name__ == '__main__': | 1075 if __name__ == '__main__': |
| 1084 try: | 1076 try: |
| 1085 sys.exit(main(sys.argv[1:])) | 1077 sys.exit(main(sys.argv[1:])) |
| 1086 except KeyboardInterrupt: | 1078 except KeyboardInterrupt: |
| 1087 buildbot_common.ErrorExit('build_sdk: interrupted') | 1079 buildbot_common.ErrorExit('build_sdk: interrupted') |
| OLD | NEW |