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

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

Issue 1388503003: [NaCl SDK] Remove newlib toolchain from the SDK (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 2 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
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 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
58 58
59 NACLPORTS_URL = 'https://chromium.googlesource.com/external/naclports.git' 59 NACLPORTS_URL = 'https://chromium.googlesource.com/external/naclports.git'
60 NACLPORTS_REV = '65c71c1524a74ff8415573e5e5ef7c59ce4ac437' 60 NACLPORTS_REV = '65c71c1524a74ff8415573e5e5ef7c59ce4ac437'
61 61
62 GYPBUILD_DIR = 'gypbuild' 62 GYPBUILD_DIR = 'gypbuild'
63 63
64 options = None 64 options = None
65 65
66 # Map of: ToolchainName: (PackageName, SDKDir, arch). 66 # Map of: ToolchainName: (PackageName, SDKDir, arch).
67 TOOLCHAIN_PACKAGE_MAP = { 67 TOOLCHAIN_PACKAGE_MAP = {
68 'arm_newlib': ('nacl_arm_newlib', '%(platform)s_arm_newlib', 'arm'), 68 'arm_newlib': ('nacl_arm_newlib', '%(platform)s_arm_newlib', 'arm'),
binji 2015/10/02 23:08:06 remove this too?
Sam Clegg 2015/10/02 23:42:50 Done.
69 'arm_glibc': ('nacl_arm_glibc', '%(platform)s_arm_glibc', 'arm'), 69 'arm_glibc': ('nacl_arm_glibc', '%(platform)s_arm_glibc', 'arm'),
70 'x86_newlib': ('nacl_x86_newlib', '%(platform)s_x86_newlib', 'x86'),
71 'x86_glibc': ('nacl_x86_glibc', '%(platform)s_x86_glibc', 'x86'), 70 'x86_glibc': ('nacl_x86_glibc', '%(platform)s_x86_glibc', 'x86'),
72 'arm_bionic': ('nacl_arm_bionic', '%(platform)s_arm_bionic', 'arm'), 71 'arm_bionic': ('nacl_arm_bionic', '%(platform)s_arm_bionic', 'arm'),
73 'pnacl': ('pnacl_newlib', '%(platform)s_pnacl', 'pnacl') 72 'pnacl': ('pnacl_newlib', '%(platform)s_pnacl', 'pnacl')
74 } 73 }
75 74
76 75
77 def GetToolchainDirName(tcname): 76 def GetToolchainDirName(tcname):
78 """Return the directory name for a given toolchain""" 77 """Return the directory name for a given toolchain"""
79 return TOOLCHAIN_PACKAGE_MAP[tcname][1] % {'platform': getos.GetPlatform()} 78 return TOOLCHAIN_PACKAGE_MAP[tcname][1] % {'platform': getos.GetPlatform()}
80 79
(...skipping 865 matching lines...) Expand 10 before | Expand all | Expand 10 after
946 if buildbot_common.IsSDKBuilder(): 945 if buildbot_common.IsSDKBuilder():
947 options.archive = True 946 options.archive = True
948 # TODO(binji): re-enable app_engine build when the linux builder stops 947 # TODO(binji): re-enable app_engine build when the linux builder stops
949 # breaking when trying to git clone from github. 948 # breaking when trying to git clone from github.
950 # See http://crbug.com/412969. 949 # See http://crbug.com/412969.
951 options.build_app_engine = False 950 options.build_app_engine = False
952 options.tar = True 951 options.tar = True
953 952
954 # NOTE: order matters here. This will be the order that is specified in the 953 # NOTE: order matters here. This will be the order that is specified in the
955 # Makefiles; the first toolchain will be the default. 954 # Makefiles; the first toolchain will be the default.
956 toolchains = ['pnacl', 'x86_newlib', 'x86_glibc', 'arm_newlib', 'arm_glibc', 955 toolchains = ['pnacl', 'x86_glibc', 'arm_glibc', 'clang-newlib', 'host']
957 'clang-newlib', 'host']
958 956
959 # Changes for experimental bionic builder 957 # Changes for experimental bionic builder
960 if options.bionic: 958 if options.bionic:
961 toolchains.append('arm_bionic') 959 toolchains.append('arm_bionic')
962 options.build_app_engine = False 960 options.build_app_engine = False
963 961
964 print 'Building: ' + ' '.join(toolchains) 962 print 'Building: ' + ' '.join(toolchains)
965 platform = getos.GetPlatform() 963 platform = getos.GetPlatform()
966 964
967 if options.archive and not options.tar: 965 if options.archive and not options.tar:
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after
1079 BuildStepArchivePNaClComponent(chrome_revision) 1077 BuildStepArchivePNaClComponent(chrome_revision)
1080 1078
1081 return 0 1079 return 0
1082 1080
1083 1081
1084 if __name__ == '__main__': 1082 if __name__ == '__main__':
1085 try: 1083 try:
1086 sys.exit(main(sys.argv[1:])) 1084 sys.exit(main(sys.argv[1:]))
1087 except KeyboardInterrupt: 1085 except KeyboardInterrupt:
1088 buildbot_common.ErrorExit('build_sdk: interrupted') 1086 buildbot_common.ErrorExit('build_sdk: interrupted')
OLDNEW
« no previous file with comments | « no previous file | native_client_sdk/src/build_tools/sdk_files.list » ('j') | native_client_sdk/src/libraries/nacl_io/library.dsc » ('J')

Powered by Google App Engine
This is Rietveld 408576698