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