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 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
50 import oshelpers | 50 import oshelpers |
51 | 51 |
52 BUILD_DIR = os.path.join(NACL_DIR, 'build') | 52 BUILD_DIR = os.path.join(NACL_DIR, 'build') |
53 NACL_TOOLCHAIN_DIR = os.path.join(NACL_DIR, 'toolchain') | 53 NACL_TOOLCHAIN_DIR = os.path.join(NACL_DIR, 'toolchain') |
54 NACL_TOOLCHAINTARS_DIR = os.path.join(NACL_TOOLCHAIN_DIR, '.tars') | 54 NACL_TOOLCHAINTARS_DIR = os.path.join(NACL_TOOLCHAIN_DIR, '.tars') |
55 | 55 |
56 CYGTAR = os.path.join(BUILD_DIR, 'cygtar.py') | 56 CYGTAR = os.path.join(BUILD_DIR, 'cygtar.py') |
57 PKGVER = os.path.join(BUILD_DIR, 'package_version', 'package_version.py') | 57 PKGVER = os.path.join(BUILD_DIR, 'package_version', 'package_version.py') |
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 = '873ca4910a5f9d4206306aacb4ed79c587c6a5f3' | 60 NACLPORTS_REV = '796184d48c27d65f48638a51ae144d651cd9f90d' |
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). | 66 # Map of: ToolchainName: (PackageName, SDKDir). |
67 TOOLCHAIN_PACKAGE_MAP = { | 67 TOOLCHAIN_PACKAGE_MAP = { |
68 'newlib': ('nacl_x86_newlib', '%(platform)s_x86_newlib'), | 68 'newlib': ('nacl_x86_newlib', '%(platform)s_x86_newlib'), |
69 'bionic': ('nacl_arm_bionic', '%(platform)s_arm_bionic'), | 69 'bionic': ('nacl_arm_bionic', '%(platform)s_arm_bionic'), |
70 'arm': ('nacl_arm_newlib', '%(platform)s_arm_newlib'), | 70 'arm': ('nacl_arm_newlib', '%(platform)s_arm_newlib'), |
(...skipping 884 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
955 | 955 |
956 # Get head version of NativeClient tree | 956 # Get head version of NativeClient tree |
957 buildbot_common.BuildStep('Build bionic toolchain.') | 957 buildbot_common.BuildStep('Build bionic toolchain.') |
958 buildbot_common.Run([sys.executable, 'toolchain_build_bionic.py', '-f'], | 958 buildbot_common.Run([sys.executable, 'toolchain_build_bionic.py', '-f'], |
959 cwd=toolchain_build) | 959 cwd=toolchain_build) |
960 else: | 960 else: |
961 toolchain_build = None | 961 toolchain_build = None |
962 | 962 |
963 if buildbot_common.IsSDKBuilder(): | 963 if buildbot_common.IsSDKBuilder(): |
964 options.archive = True | 964 options.archive = True |
965 options.build_ports = True | |
966 # TODO(binji): re-enable app_engine build when the linux builder stops | |
967 # breaking when trying to git clone from github. | |
968 # See http://crbug.com/412969. | |
969 options.build_app_engine = False | |
970 options.tar = True | 965 options.tar = True |
971 | 966 |
967 options.build_ports = True | |
968 options.build_app_engine = True | |
binji
2014/11/11 22:25:13
we can try re-enabling this, but I'd rather do it
Sam Clegg
2014/11/11 22:57:50
Sorry, should have said. Not going to land this p
| |
969 | |
972 # NOTE: order matters here. This will be the order that is specified in the | 970 # NOTE: order matters here. This will be the order that is specified in the |
973 # Makefiles; the first toolchain will be the default. | 971 # Makefiles; the first toolchain will be the default. |
974 toolchains = ['pnacl', 'newlib', 'glibc', 'arm', 'host'] | 972 toolchains = ['pnacl', 'newlib', 'glibc', 'arm', 'host'] |
975 | 973 |
976 # Changes for experimental bionic builder | 974 # Changes for experimental bionic builder |
977 if options.bionic: | 975 if options.bionic: |
978 toolchains.append('bionic') | 976 toolchains.append('bionic') |
979 options.build_ports = False | 977 options.build_ports = False |
980 options.build_app_engine = False | 978 options.build_app_engine = False |
981 | 979 |
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1064 BuildStepArchiveSDKTools() | 1062 BuildStepArchiveSDKTools() |
1065 | 1063 |
1066 return 0 | 1064 return 0 |
1067 | 1065 |
1068 | 1066 |
1069 if __name__ == '__main__': | 1067 if __name__ == '__main__': |
1070 try: | 1068 try: |
1071 sys.exit(main(sys.argv)) | 1069 sys.exit(main(sys.argv)) |
1072 except KeyboardInterrupt: | 1070 except KeyboardInterrupt: |
1073 buildbot_common.ErrorExit('build_sdk: interrupted') | 1071 buildbot_common.ErrorExit('build_sdk: interrupted') |
OLD | NEW |