| 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 377 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 388 ] | 388 ] |
| 389 } | 389 } |
| 390 | 390 |
| 391 | 391 |
| 392 def GypNinjaInstall(pepperdir, toolchains): | 392 def GypNinjaInstall(pepperdir, toolchains): |
| 393 tools_files_32 = [ | 393 tools_files_32 = [ |
| 394 ['sel_ldr', 'sel_ldr_x86_32'], | 394 ['sel_ldr', 'sel_ldr_x86_32'], |
| 395 ['irt_core_newlib_x32.nexe', 'irt_core_x86_32.nexe'], | 395 ['irt_core_newlib_x32.nexe', 'irt_core_x86_32.nexe'], |
| 396 ['irt_core_newlib_x64.nexe', 'irt_core_x86_64.nexe'], | 396 ['irt_core_newlib_x64.nexe', 'irt_core_x86_64.nexe'], |
| 397 ] | 397 ] |
| 398 arm_files = [ |
| 399 ['elf_loader_newlib_arm.nexe', 'elf_loader_arm.nexe'], |
| 400 ] |
| 398 | 401 |
| 399 tools_files_64 = [] | 402 tools_files_64 = [] |
| 400 | 403 |
| 401 platform = getos.GetPlatform() | 404 platform = getos.GetPlatform() |
| 402 | 405 |
| 403 # TODO(binji): dump_syms doesn't currently build on Windows. See | 406 # TODO(binji): dump_syms doesn't currently build on Windows. See |
| 404 # http://crbug.com/245456 | 407 # http://crbug.com/245456 |
| 405 if platform != 'win': | 408 if platform != 'win': |
| 406 tools_files_64 += [ | 409 tools_files_64 += [ |
| 407 ['dump_syms', 'dump_syms'], | 410 ['dump_syms', 'dump_syms'], |
| (...skipping 14 matching lines...) Expand all Loading... |
| 422 | 425 |
| 423 tools_dir = os.path.join(pepperdir, 'tools') | 426 tools_dir = os.path.join(pepperdir, 'tools') |
| 424 buildbot_common.MakeDir(tools_dir) | 427 buildbot_common.MakeDir(tools_dir) |
| 425 | 428 |
| 426 # Add .exe extensions to all windows tools | 429 # Add .exe extensions to all windows tools |
| 427 for pair in tools_files_32 + tools_files_64: | 430 for pair in tools_files_32 + tools_files_64: |
| 428 if platform == 'win' and not pair[0].endswith('.nexe'): | 431 if platform == 'win' and not pair[0].endswith('.nexe'): |
| 429 pair[0] += '.exe' | 432 pair[0] += '.exe' |
| 430 pair[1] += '.exe' | 433 pair[1] += '.exe' |
| 431 | 434 |
| 432 InstallFiles(GetNinjaOutDir('x64'), tools_dir, tools_files_64) | |
| 433 InstallFiles(GetNinjaOutDir('ia32'), tools_dir, tools_files_32) | |
| 434 | |
| 435 # Add ARM binaries | 435 # Add ARM binaries |
| 436 if platform == 'linux' and not options.no_arm_trusted: | 436 if platform == 'linux' and not options.no_arm_trusted: |
| 437 arm_files = [ | 437 arm_files += [ |
| 438 ['irt_core_newlib_arm.nexe', 'irt_core_arm.nexe'], | 438 ['irt_core_newlib_arm.nexe', 'irt_core_arm.nexe'], |
| 439 ['elf_loader_newlib_arm.nexe', 'elf_loader_arm.nexe'], | |
| 440 ['nacl_helper_bootstrap', 'nacl_helper_bootstrap_arm'], | 439 ['nacl_helper_bootstrap', 'nacl_helper_bootstrap_arm'], |
| 441 ['nonsfi_loader_newlib_arm_nonsfi.nexe', 'nonsfi_loader_arm'], | 440 ['nonsfi_loader_newlib_arm_nonsfi.nexe', 'nonsfi_loader_arm'], |
| 442 ['sel_ldr', 'sel_ldr_arm'] | 441 ['sel_ldr', 'sel_ldr_arm'] |
| 443 ] | 442 ] |
| 444 InstallFiles(GetNinjaOutDir('arm'), tools_dir, arm_files) | 443 |
| 444 InstallFiles(GetNinjaOutDir('x64'), tools_dir, tools_files_64) |
| 445 InstallFiles(GetNinjaOutDir('ia32'), tools_dir, tools_files_32) |
| 446 InstallFiles(GetNinjaOutDir('arm'), tools_dir, arm_files) |
| 445 | 447 |
| 446 for tc in toolchains: | 448 for tc in toolchains: |
| 447 if tc in ('host', 'clang-newlib'): | 449 if tc in ('host', 'clang-newlib'): |
| 448 continue | 450 continue |
| 449 elif tc == 'pnacl': | 451 elif tc == 'pnacl': |
| 450 xarches = (None, 'ia32', 'x64', 'arm') | 452 xarches = (None, 'ia32', 'x64', 'arm') |
| 451 elif tc in ('x86_glibc', 'x86_newlib'): | 453 elif tc in ('x86_glibc', 'x86_newlib'): |
| 452 xarches = ('ia32', 'x64') | 454 xarches = ('ia32', 'x64') |
| 453 elif tc in ('arm_glibc', 'arm_bionic'): | 455 elif tc in ('arm_glibc', 'arm_bionic'): |
| 454 xarches = ('arm',) | 456 xarches = ('arm',) |
| (...skipping 621 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1076 BuildStepArchivePNaClComponent(chrome_revision) | 1078 BuildStepArchivePNaClComponent(chrome_revision) |
| 1077 | 1079 |
| 1078 return 0 | 1080 return 0 |
| 1079 | 1081 |
| 1080 | 1082 |
| 1081 if __name__ == '__main__': | 1083 if __name__ == '__main__': |
| 1082 try: | 1084 try: |
| 1083 sys.exit(main(sys.argv[1:])) | 1085 sys.exit(main(sys.argv[1:])) |
| 1084 except KeyboardInterrupt: | 1086 except KeyboardInterrupt: |
| 1085 buildbot_common.ErrorExit('build_sdk: interrupted') | 1087 buildbot_common.ErrorExit('build_sdk: interrupted') |
| OLD | NEW |