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

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

Issue 735163002: Use the new nacl_core_sdk mode for package_version within Chromium. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 6 years, 1 month 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
« no previous file with comments | « chrome/test/nacl_test_injection/buildbot_chrome_nacl_stage.py ('k') | no next file » | 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 128 matching lines...) Expand 10 before | Expand all | Expand 10 after
139 139
140 140
141 def GetPNaClTranslatorLib(tcpath, arch): 141 def GetPNaClTranslatorLib(tcpath, arch):
142 if arch not in ['arm', 'x86-32', 'x86-64']: 142 if arch not in ['arm', 'x86-32', 'x86-64']:
143 buildbot_common.ErrorExit('Unknown architecture %s.' % arch) 143 buildbot_common.ErrorExit('Unknown architecture %s.' % arch)
144 return os.path.join(tcpath, 'translator', arch, 'lib') 144 return os.path.join(tcpath, 'translator', arch, 'lib')
145 145
146 146
147 def BuildStepDownloadToolchains(toolchains): 147 def BuildStepDownloadToolchains(toolchains):
148 buildbot_common.BuildStep('Running package_version.py') 148 buildbot_common.BuildStep('Running package_version.py')
149 args = [sys.executable, PKGVER, '--exclude', 'arm_trusted'] 149 args = [sys.executable, PKGVER, '--mode', 'nacl_core_sdk']
150 if 'bionic' in toolchains: 150 if 'bionic' in toolchains:
151 build_platform = '%s_x86' % getos.GetPlatform() 151 build_platform = '%s_x86' % getos.GetPlatform()
152 args.extend(['--append', os.path.join(build_platform, 'nacl_arm_bionic')]) 152 args.extend(['--append', os.path.join(build_platform, 'nacl_arm_bionic')])
153 args.append('sync') 153 args.append('sync')
154 buildbot_common.Run(args, cwd=NACL_DIR) 154 buildbot_common.Run(args, cwd=NACL_DIR)
155 155
156 156
157 def BuildStepCleanPepperDirs(pepperdir, pepperdir_old): 157 def BuildStepCleanPepperDirs(pepperdir, pepperdir_old):
158 buildbot_common.BuildStep('Clean Pepper Dirs') 158 buildbot_common.BuildStep('Clean Pepper Dirs')
159 buildbot_common.RemoveDir(pepperdir_old) 159 buildbot_common.RemoveDir(pepperdir_old)
(...skipping 699 matching lines...) Expand 10 before | Expand all | Expand 10 after
859 859
860 buildbot_common.Run([build_script], env=env, cwd=NACLPORTS_DIR) 860 buildbot_common.Run([build_script], env=env, cwd=NACLPORTS_DIR)
861 861
862 # Some naclports do not include a standalone LICENSE/COPYING file 862 # Some naclports do not include a standalone LICENSE/COPYING file
863 # so we explicitly list those here for inclusion. 863 # so we explicitly list those here for inclusion.
864 extra_licenses = ('tinyxml/readme.txt', 864 extra_licenses = ('tinyxml/readme.txt',
865 'jpeg-8d/README', 865 'jpeg-8d/README',
866 'zlib-1.2.3/README') 866 'zlib-1.2.3/README')
867 src_root = os.path.join(NACLPORTS_DIR, 'out', 'build') 867 src_root = os.path.join(NACLPORTS_DIR, 'out', 'build')
868 output_license = os.path.join(out_dir, 'ports', 'LICENSE') 868 output_license = os.path.join(out_dir, 'ports', 'LICENSE')
869 GenerateNotice(src_root , output_license, extra_licenses) 869 GenerateNotice(src_root, output_license, extra_licenses)
870 readme = os.path.join(out_dir, 'ports', 'README') 870 readme = os.path.join(out_dir, 'ports', 'README')
871 oshelpers.Copy(['-v', os.path.join(SDK_SRC_DIR, 'README.naclports'), readme]) 871 oshelpers.Copy(['-v', os.path.join(SDK_SRC_DIR, 'README.naclports'), readme])
872 872
873 873
874 def BuildStepTarNaClPorts(pepper_ver, tarfile): 874 def BuildStepTarNaClPorts(pepper_ver, tarfile):
875 """Create tar archive containing headers and libs from naclports build.""" 875 """Create tar archive containing headers and libs from naclports build."""
876 buildbot_common.BuildStep('Tar naclports Bundle') 876 buildbot_common.BuildStep('Tar naclports Bundle')
877 buildbot_common.MakeDir(os.path.dirname(tarfile)) 877 buildbot_common.MakeDir(os.path.dirname(tarfile))
878 pepper_dir = 'pepper_%s' % pepper_ver 878 pepper_dir = 'pepper_%s' % pepper_ver
879 archive_dirs = [os.path.join(pepper_dir, 'ports')] 879 archive_dirs = [os.path.join(pepper_dir, 'ports')]
(...skipping 184 matching lines...) Expand 10 before | Expand all | Expand 10 after
1064 BuildStepArchiveSDKTools() 1064 BuildStepArchiveSDKTools()
1065 1065
1066 return 0 1066 return 0
1067 1067
1068 1068
1069 if __name__ == '__main__': 1069 if __name__ == '__main__':
1070 try: 1070 try:
1071 sys.exit(main(sys.argv[1:])) 1071 sys.exit(main(sys.argv[1:]))
1072 except KeyboardInterrupt: 1072 except KeyboardInterrupt:
1073 buildbot_common.ErrorExit('build_sdk: interrupted') 1073 buildbot_common.ErrorExit('build_sdk: interrupted')
OLDNEW
« no previous file with comments | « chrome/test/nacl_test_injection/buildbot_chrome_nacl_stage.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698