| 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 22 matching lines...) Expand all Loading... |
| 33 import buildbot_common | 33 import buildbot_common |
| 34 import build_projects | 34 import build_projects |
| 35 import build_updater | 35 import build_updater |
| 36 import build_version | 36 import build_version |
| 37 import generate_notice | 37 import generate_notice |
| 38 import manifest_util | 38 import manifest_util |
| 39 import parse_dsc | 39 import parse_dsc |
| 40 import verify_filelist | 40 import verify_filelist |
| 41 | 41 |
| 42 from build_paths import SCRIPT_DIR, SDK_SRC_DIR, SRC_DIR, NACL_DIR, OUT_DIR | 42 from build_paths import SCRIPT_DIR, SDK_SRC_DIR, SRC_DIR, NACL_DIR, OUT_DIR |
| 43 from build_paths import NACLPORTS_DIR, GSTORE, GONACL_APPENGINE_SRC_DIR | 43 from build_paths import GSTORE, GONACL_APPENGINE_SRC_DIR |
| 44 | 44 |
| 45 # Add SDK make tools scripts to the python path. | 45 # Add SDK make tools scripts to the python path. |
| 46 sys.path.append(os.path.join(SDK_SRC_DIR, 'tools')) | 46 sys.path.append(os.path.join(SDK_SRC_DIR, 'tools')) |
| 47 sys.path.append(os.path.join(NACL_DIR, 'build')) | 47 sys.path.append(os.path.join(NACL_DIR, 'build')) |
| 48 | 48 |
| 49 import getos | 49 import getos |
| 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' | |
| 60 NACLPORTS_REV = '65c71c1524a74ff8415573e5e5ef7c59ce4ac437' | |
| 61 | |
| 62 GYPBUILD_DIR = 'gypbuild' | 59 GYPBUILD_DIR = 'gypbuild' |
| 63 | 60 |
| 64 options = None | 61 options = None |
| 65 | 62 |
| 66 # Map of: ToolchainName: (PackageName, SDKDir, arch). | 63 # Map of: ToolchainName: (PackageName, SDKDir, arch). |
| 67 TOOLCHAIN_PACKAGE_MAP = { | 64 TOOLCHAIN_PACKAGE_MAP = { |
| 68 'arm_glibc': ('nacl_arm_glibc', '%(platform)s_arm_glibc', 'arm'), | 65 'arm_glibc': ('nacl_arm_glibc', '%(platform)s_arm_glibc', 'arm'), |
| 69 'x86_glibc': ('nacl_x86_glibc', '%(platform)s_x86_glibc', 'x86'), | 66 'x86_glibc': ('nacl_x86_glibc', '%(platform)s_x86_glibc', 'x86'), |
| 70 'pnacl': ('pnacl_newlib', '%(platform)s_pnacl', 'pnacl') | 67 'pnacl': ('pnacl_newlib', '%(platform)s_pnacl', 'pnacl') |
| 71 } | 68 } |
| (...skipping 935 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1007 BuildStepArchivePNaClComponent(chrome_revision) | 1004 BuildStepArchivePNaClComponent(chrome_revision) |
| 1008 | 1005 |
| 1009 return 0 | 1006 return 0 |
| 1010 | 1007 |
| 1011 | 1008 |
| 1012 if __name__ == '__main__': | 1009 if __name__ == '__main__': |
| 1013 try: | 1010 try: |
| 1014 sys.exit(main(sys.argv[1:])) | 1011 sys.exit(main(sys.argv[1:])) |
| 1015 except KeyboardInterrupt: | 1012 except KeyboardInterrupt: |
| 1016 buildbot_common.ErrorExit('build_sdk: interrupted') | 1013 buildbot_common.ErrorExit('build_sdk: interrupted') |
| OLD | NEW |