| 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://naclports.googlecode.com/svn/trunk/src' | 59 NACLPORTS_URL = 'https://naclports.googlecode.com/svn/trunk/src' |
| 60 NACLPORTS_REV = 1290 | 60 NACLPORTS_REV = 1292 |
| 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 955 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1026 BuildStepArchiveSDKTools() | 1026 BuildStepArchiveSDKTools() |
| 1027 | 1027 |
| 1028 return 0 | 1028 return 0 |
| 1029 | 1029 |
| 1030 | 1030 |
| 1031 if __name__ == '__main__': | 1031 if __name__ == '__main__': |
| 1032 try: | 1032 try: |
| 1033 sys.exit(main(sys.argv)) | 1033 sys.exit(main(sys.argv)) |
| 1034 except KeyboardInterrupt: | 1034 except KeyboardInterrupt: |
| 1035 buildbot_common.ErrorExit('build_sdk: interrupted') | 1035 buildbot_common.ErrorExit('build_sdk: interrupted') |
| OLD | NEW |