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 427 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
438 'libppapi_stub.a', | 438 'libppapi_stub.a', |
439 ] | 439 ] |
440 } | 440 } |
441 | 441 |
442 | 442 |
443 def GypNinjaInstall(pepperdir, platform, toolchains): | 443 def GypNinjaInstall(pepperdir, platform, toolchains): |
444 build_dir = GYPBUILD_DIR | 444 build_dir = GYPBUILD_DIR |
445 ninja_out_dir = os.path.join(OUT_DIR, build_dir, 'Release') | 445 ninja_out_dir = os.path.join(OUT_DIR, build_dir, 'Release') |
446 tools_files = [ | 446 tools_files = [ |
447 ['sel_ldr', 'sel_ldr_x86_32'], | 447 ['sel_ldr', 'sel_ldr_x86_32'], |
448 ['ncval_x86_32', 'ncval_x86_32'], | 448 ['ncval_new', 'ncval'], |
449 ['ncval_arm', 'ncval_arm'], | |
450 ['irt_core_newlib_x32.nexe', 'irt_core_x86_32.nexe'], | 449 ['irt_core_newlib_x32.nexe', 'irt_core_x86_32.nexe'], |
451 ['irt_core_newlib_x64.nexe', 'irt_core_x86_64.nexe'], | 450 ['irt_core_newlib_x64.nexe', 'irt_core_x86_64.nexe'], |
452 ] | 451 ] |
453 | 452 |
454 # TODO(binji): dump_syms doesn't currently build on Windows. See | 453 # TODO(binji): dump_syms doesn't currently build on Windows. See |
455 # http://crbug.com/245456 | 454 # http://crbug.com/245456 |
456 if platform != 'win': | 455 if platform != 'win': |
457 tools_files.append(['dump_syms', 'dump_syms']) | 456 tools_files.append(['dump_syms', 'dump_syms']) |
458 | 457 |
459 if platform != 'mac': | 458 if platform != 'mac': |
460 # Mac doesn't build 64-bit binaries. | 459 # Mac doesn't build 64-bit binaries. |
461 tools_files.append(['sel_ldr64', 'sel_ldr_x86_64']) | 460 tools_files.append(['sel_ldr64', 'sel_ldr_x86_64']) |
462 tools_files.append(['ncval_x86_64', 'ncval_x86_64']) | |
463 | 461 |
464 if platform == 'linux': | 462 if platform == 'linux': |
465 tools_files.append(['nacl_helper_bootstrap', | 463 tools_files.append(['nacl_helper_bootstrap', |
466 'nacl_helper_bootstrap_x86_32']) | 464 'nacl_helper_bootstrap_x86_32']) |
467 tools_files.append(['nacl_helper_bootstrap64', | 465 tools_files.append(['nacl_helper_bootstrap64', |
468 'nacl_helper_bootstrap_x86_64']) | 466 'nacl_helper_bootstrap_x86_64']) |
469 | 467 |
470 buildbot_common.MakeDir(os.path.join(pepperdir, 'tools')) | 468 buildbot_common.MakeDir(os.path.join(pepperdir, 'tools')) |
471 | 469 |
472 # Add .exe extensions to all windows tools | 470 # Add .exe extensions to all windows tools |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
506 | 504 |
507 def GypNinjaBuild_NaCl(platform, rel_out_dir): | 505 def GypNinjaBuild_NaCl(platform, rel_out_dir): |
508 gyp_py = os.path.join(NACL_DIR, 'build', 'gyp_nacl') | 506 gyp_py = os.path.join(NACL_DIR, 'build', 'gyp_nacl') |
509 nacl_core_sdk_gyp = os.path.join(NACL_DIR, 'build', 'nacl_core_sdk.gyp') | 507 nacl_core_sdk_gyp = os.path.join(NACL_DIR, 'build', 'nacl_core_sdk.gyp') |
510 all_gyp = os.path.join(NACL_DIR, 'build', 'all.gyp') | 508 all_gyp = os.path.join(NACL_DIR, 'build', 'all.gyp') |
511 | 509 |
512 out_dir = MakeNinjaRelPath(rel_out_dir) | 510 out_dir = MakeNinjaRelPath(rel_out_dir) |
513 out_dir_arm = MakeNinjaRelPath(rel_out_dir + '-arm') | 511 out_dir_arm = MakeNinjaRelPath(rel_out_dir + '-arm') |
514 GypNinjaBuild('ia32', gyp_py, nacl_core_sdk_gyp, 'nacl_core_sdk', out_dir) | 512 GypNinjaBuild('ia32', gyp_py, nacl_core_sdk_gyp, 'nacl_core_sdk', out_dir) |
515 GypNinjaBuild('arm', gyp_py, nacl_core_sdk_gyp, 'nacl_core_sdk', out_dir_arm) | 513 GypNinjaBuild('arm', gyp_py, nacl_core_sdk_gyp, 'nacl_core_sdk', out_dir_arm) |
516 GypNinjaBuild('ia32', gyp_py, all_gyp, 'ncval_x86_32', out_dir) | 514 GypNinjaBuild('ia32', gyp_py, all_gyp, 'ncval_new', out_dir) |
noelallen1
2013/06/03 18:28:13
What are we doing for PNaCl?
binji
2013/06/03 18:32:33
pnacl has its own bitcode checker (included with t
| |
517 GypNinjaBuild(None, gyp_py, all_gyp, 'ncval_arm', out_dir) | |
518 | 515 |
519 if platform == 'win': | 516 if platform == 'win': |
520 NinjaBuild('sel_ldr64', out_dir) | 517 NinjaBuild('sel_ldr64', out_dir) |
521 NinjaBuild('ncval_x86_64', out_dir) | |
522 elif platform == 'linux': | 518 elif platform == 'linux': |
523 out_dir_64 = MakeNinjaRelPath(rel_out_dir + '-64') | 519 out_dir_64 = MakeNinjaRelPath(rel_out_dir + '-64') |
524 GypNinjaBuild('x64', gyp_py, nacl_core_sdk_gyp, 'sel_ldr', out_dir_64) | 520 GypNinjaBuild('x64', gyp_py, nacl_core_sdk_gyp, 'sel_ldr', out_dir_64) |
525 GypNinjaBuild('x64', gyp_py, all_gyp, 'ncval_x86_64', out_dir_64) | |
526 | 521 |
527 # We only need sel_ldr and ncval_x86_64 from the 64-bit out directory. | 522 # We only need sel_ldr from the 64-bit out directory. |
528 # sel_ldr needs to be renamed, so we'll call it sel_ldr64. | 523 # sel_ldr needs to be renamed, so we'll call it sel_ldr64. |
529 files_to_copy = [ | 524 files_to_copy = [ |
530 ('sel_ldr', 'sel_ldr64'), | 525 ('sel_ldr', 'sel_ldr64'), |
531 ('ncval_x86_64', 'ncval_x86_64'), | |
532 ('nacl_helper_bootstrap', 'nacl_helper_bootstrap64'), | 526 ('nacl_helper_bootstrap', 'nacl_helper_bootstrap64'), |
533 ] | 527 ] |
534 | 528 |
535 for src, dst in files_to_copy: | 529 for src, dst in files_to_copy: |
536 buildbot_common.CopyFile( | 530 buildbot_common.CopyFile( |
537 os.path.join(SRC_DIR, out_dir_64, 'Release', src), | 531 os.path.join(SRC_DIR, out_dir_64, 'Release', src), |
538 os.path.join(SRC_DIR, out_dir, 'Release', dst)) | 532 os.path.join(SRC_DIR, out_dir, 'Release', dst)) |
539 | 533 |
540 | 534 |
541 def GypNinjaBuild_Breakpad(platform, rel_out_dir): | 535 def GypNinjaBuild_Breakpad(platform, rel_out_dir): |
(...skipping 438 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
980 BuildStepArchiveSDKTools() | 974 BuildStepArchiveSDKTools() |
981 | 975 |
982 return 0 | 976 return 0 |
983 | 977 |
984 | 978 |
985 if __name__ == '__main__': | 979 if __name__ == '__main__': |
986 try: | 980 try: |
987 sys.exit(main(sys.argv)) | 981 sys.exit(main(sys.argv)) |
988 except KeyboardInterrupt: | 982 except KeyboardInterrupt: |
989 buildbot_common.ErrorExit('build_sdk: interrupted') | 983 buildbot_common.ErrorExit('build_sdk: interrupted') |
OLD | NEW |