Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(292)

Side by Side Diff: native_client_sdk/src/build_tools/build_sdk.py

Issue 164373010: Split the PNaCl IRT shim into 3 pieces, and include one piece into IRT. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix up mips Created 6 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 522 matching lines...) Expand 10 before | Expand all | Expand 10 after
533 533
534 def GypNinjaBuild_Pnacl(rel_out_dir, target_arch): 534 def GypNinjaBuild_Pnacl(rel_out_dir, target_arch):
535 # TODO(binji): This will build the pnacl_irt_shim twice; once as part of the 535 # TODO(binji): This will build the pnacl_irt_shim twice; once as part of the
536 # Chromium build, and once here. When we move more of the SDK build process 536 # Chromium build, and once here. When we move more of the SDK build process
537 # to gyp, we can remove this. 537 # to gyp, we can remove this.
538 gyp_py = os.path.join(SRC_DIR, 'build', 'gyp_chromium') 538 gyp_py = os.path.join(SRC_DIR, 'build', 'gyp_chromium')
539 539
540 out_dir = MakeNinjaRelPath(rel_out_dir) 540 out_dir = MakeNinjaRelPath(rel_out_dir)
541 gyp_file = os.path.join(SRC_DIR, 'ppapi', 'native_client', 'src', 541 gyp_file = os.path.join(SRC_DIR, 'ppapi', 'native_client', 'src',
542 'untrusted', 'pnacl_irt_shim', 'pnacl_irt_shim.gyp') 542 'untrusted', 'pnacl_irt_shim', 'pnacl_irt_shim.gyp')
543 targets = ['pnacl_irt_shim'] 543 targets = ['pnacl_irt_shim_aot']
544 GypNinjaBuild(target_arch, gyp_py, gyp_file, targets, out_dir, False) 544 GypNinjaBuild(target_arch, gyp_py, gyp_file, targets, out_dir, False)
545 545
546 546
547 def GypNinjaBuild(arch, gyp_py_script, gyp_file, targets, 547 def GypNinjaBuild(arch, gyp_py_script, gyp_file, targets,
548 out_dir, force_arm_gcc=True): 548 out_dir, force_arm_gcc=True):
549 gyp_env = dict(os.environ) 549 gyp_env = dict(os.environ)
550 gyp_env['GYP_GENERATORS'] = 'ninja' 550 gyp_env['GYP_GENERATORS'] = 'ninja'
551 gyp_defines = [] 551 gyp_defines = []
552 if options.mac_sdk: 552 if options.mac_sdk:
553 gyp_defines.append('mac_sdk=%s' % options.mac_sdk) 553 gyp_defines.append('mac_sdk=%s' % options.mac_sdk)
(...skipping 464 matching lines...) Expand 10 before | Expand all | Expand 10 after
1018 BuildStepArchiveSDKTools() 1018 BuildStepArchiveSDKTools()
1019 1019
1020 return 0 1020 return 0
1021 1021
1022 1022
1023 if __name__ == '__main__': 1023 if __name__ == '__main__':
1024 try: 1024 try:
1025 sys.exit(main(sys.argv)) 1025 sys.exit(main(sys.argv))
1026 except KeyboardInterrupt: 1026 except KeyboardInterrupt:
1027 buildbot_common.ErrorExit('build_sdk: interrupted') 1027 buildbot_common.ErrorExit('build_sdk: interrupted')
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698