| 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 504 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 515 | 515 |
| 516 def GypNinjaBuild_Pnacl(rel_out_dir, target_arch): | 516 def GypNinjaBuild_Pnacl(rel_out_dir, target_arch): |
| 517 # TODO(binji): This will build the pnacl_irt_shim twice; once as part of the | 517 # TODO(binji): This will build the pnacl_irt_shim twice; once as part of the |
| 518 # Chromium build, and once here. When we move more of the SDK build process | 518 # Chromium build, and once here. When we move more of the SDK build process |
| 519 # to gyp, we can remove this. | 519 # to gyp, we can remove this. |
| 520 gyp_py = os.path.join(SRC_DIR, 'build', 'gyp_chromium') | 520 gyp_py = os.path.join(SRC_DIR, 'build', 'gyp_chromium') |
| 521 | 521 |
| 522 out_dir = MakeNinjaRelPath(rel_out_dir) | 522 out_dir = MakeNinjaRelPath(rel_out_dir) |
| 523 gyp_file = os.path.join(SRC_DIR, 'ppapi', 'native_client', 'src', | 523 gyp_file = os.path.join(SRC_DIR, 'ppapi', 'native_client', 'src', |
| 524 'untrusted', 'pnacl_irt_shim', 'pnacl_irt_shim.gyp') | 524 'untrusted', 'pnacl_irt_shim', 'pnacl_irt_shim.gyp') |
| 525 targets = ['pnacl_irt_shim'] | 525 targets = ['pnacl_irt_shim_aot'] |
| 526 GypNinjaBuild(target_arch, gyp_py, gyp_file, targets, out_dir, False) | 526 GypNinjaBuild(target_arch, gyp_py, gyp_file, targets, out_dir, False) |
| 527 | 527 |
| 528 | 528 |
| 529 def GypNinjaBuild(arch, gyp_py_script, gyp_file, targets, | 529 def GypNinjaBuild(arch, gyp_py_script, gyp_file, targets, |
| 530 out_dir, force_arm_gcc=True): | 530 out_dir, force_arm_gcc=True): |
| 531 gyp_env = dict(os.environ) | 531 gyp_env = dict(os.environ) |
| 532 gyp_env['GYP_GENERATORS'] = 'ninja' | 532 gyp_env['GYP_GENERATORS'] = 'ninja' |
| 533 gyp_defines = [] | 533 gyp_defines = [] |
| 534 if options.mac_sdk: | 534 if options.mac_sdk: |
| 535 gyp_defines.append('mac_sdk=%s' % options.mac_sdk) | 535 gyp_defines.append('mac_sdk=%s' % options.mac_sdk) |
| (...skipping 459 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 995 BuildStepArchiveSDKTools() | 995 BuildStepArchiveSDKTools() |
| 996 | 996 |
| 997 return 0 | 997 return 0 |
| 998 | 998 |
| 999 | 999 |
| 1000 if __name__ == '__main__': | 1000 if __name__ == '__main__': |
| 1001 try: | 1001 try: |
| 1002 sys.exit(main(sys.argv)) | 1002 sys.exit(main(sys.argv)) |
| 1003 except KeyboardInterrupt: | 1003 except KeyboardInterrupt: |
| 1004 buildbot_common.ErrorExit('build_sdk: interrupted') | 1004 buildbot_common.ErrorExit('build_sdk: interrupted') |
| OLD | NEW |