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

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

Issue 13106002: [NaCl SDK] A bunch of spelling fixes. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix presubmit Created 7 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
« no previous file with comments | « no previous file | native_client_sdk/src/build_tools/generate_make.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 682 matching lines...) Expand 10 before | Expand all | Expand 10 after
693 dsc = os.path.join(SDK_EXAMPLE_DIR, example, 'example.dsc') 693 dsc = os.path.join(SDK_EXAMPLE_DIR, example, 'example.dsc')
694 args.append(dsc) 694 args.append(dsc)
695 695
696 for library in LIBRARY_LIST: 696 for library in LIBRARY_LIST:
697 dsc = os.path.join(SDK_LIBRARY_DIR, library, 'library.dsc') 697 dsc = os.path.join(SDK_LIBRARY_DIR, library, 'library.dsc')
698 args.append(dsc) 698 args.append(dsc)
699 699
700 if build_experimental: 700 if build_experimental:
701 args.append('--experimental') 701 args.append('--experimental')
702 702
703 print "Generting Makefiles: %s" % str(args) 703 print "Generating Makefiles: %s" % str(args)
704 if generate_make.main(args): 704 if generate_make.main(args):
705 buildbot_common.ErrorExit('Failed to build examples.') 705 buildbot_common.ErrorExit('Failed to build examples.')
706 706
707 707
708 def GetWindowsEnvironment(): 708 def GetWindowsEnvironment():
709 sys.path.append(os.path.join(NACL_DIR, 'buildbot')) 709 sys.path.append(os.path.join(NACL_DIR, 'buildbot'))
710 import buildbot_standard 710 import buildbot_standard
711 711
712 # buildbot_standard.SetupWindowsEnvironment expects a "context" object. We'll 712 # buildbot_standard.SetupWindowsEnvironment expects a "context" object. We'll
713 # fake enough of that here to work. 713 # fake enough of that here to work.
(...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after
873 buildbot_common.Archive('sdk_tools.tgz', bucket_path, OUT_DIR, 873 buildbot_common.Archive('sdk_tools.tgz', bucket_path, OUT_DIR,
874 step_link=False) 874 step_link=False)
875 buildbot_common.Archive('nacl_sdk.zip', bucket_path, OUT_DIR, 875 buildbot_common.Archive('nacl_sdk.zip', bucket_path, OUT_DIR,
876 step_link=False) 876 step_link=False)
877 877
878 878
879 def BuildStepSyncNaClPorts(): 879 def BuildStepSyncNaClPorts():
880 """Pull the pinned revision of naclports from SVN.""" 880 """Pull the pinned revision of naclports from SVN."""
881 buildbot_common.BuildStep('Sync naclports') 881 buildbot_common.BuildStep('Sync naclports')
882 if not os.path.exists(NACLPORTS_DIR): 882 if not os.path.exists(NACLPORTS_DIR):
883 # chedckout new copy of naclports 883 # checkout new copy of naclports
884 cmd = ['svn', 'checkout', '-q', '-r', str(NACLPORTS_REV), NACLPORTS_URL, 884 cmd = ['svn', 'checkout', '-q', '-r', str(NACLPORTS_REV), NACLPORTS_URL,
885 'naclports'] 885 'naclports']
886 buildbot_common.Run(cmd, cwd=os.path.dirname(NACLPORTS_DIR)) 886 buildbot_common.Run(cmd, cwd=os.path.dirname(NACLPORTS_DIR))
887 else: 887 else:
888 # sync existing copy to pinned revision. 888 # sync existing copy to pinned revision.
889 cmd = ['svn', 'update', '-r', str(NACLPORTS_REV)] 889 cmd = ['svn', 'update', '-r', str(NACLPORTS_REV)]
890 buildbot_common.Run(cmd, cwd=NACLPORTS_DIR) 890 buildbot_common.Run(cmd, cwd=NACLPORTS_DIR)
891 891
892 892
893 def BuildStepBuildNaClPorts(pepper_ver, pepperdir): 893 def BuildStepBuildNaClPorts(pepper_ver, pepperdir):
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after
1029 BuildStepArchiveBundle('build', pepper_ver, clnumber, tarfile) 1029 BuildStepArchiveBundle('build', pepper_ver, clnumber, tarfile)
1030 if platform == 'linux': 1030 if platform == 'linux':
1031 BuildStepArchiveBundle('naclports', pepper_ver, clnumber, ports_tarfile) 1031 BuildStepArchiveBundle('naclports', pepper_ver, clnumber, ports_tarfile)
1032 BuildStepArchiveSDKTools() 1032 BuildStepArchiveSDKTools()
1033 1033
1034 return 0 1034 return 0
1035 1035
1036 1036
1037 if __name__ == '__main__': 1037 if __name__ == '__main__':
1038 sys.exit(main(sys.argv)) 1038 sys.exit(main(sys.argv))
OLDNEW
« no previous file with comments | « no previous file | native_client_sdk/src/build_tools/generate_make.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698