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 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
47 # Add SDK make tools scripts to the python path. | 47 # Add SDK make tools scripts to the python path. |
48 sys.path.append(os.path.join(SDK_SRC_DIR, 'tools')) | 48 sys.path.append(os.path.join(SDK_SRC_DIR, 'tools')) |
49 sys.path.append(os.path.join(NACL_DIR, 'build')) | 49 sys.path.append(os.path.join(NACL_DIR, 'build')) |
50 | 50 |
51 import getos | 51 import getos |
52 import oshelpers | 52 import oshelpers |
53 | 53 |
54 CYGTAR = os.path.join(NACL_DIR, 'build', 'cygtar.py') | 54 CYGTAR = os.path.join(NACL_DIR, 'build', 'cygtar.py') |
55 | 55 |
56 NACLPORTS_URL = 'https://naclports.googlecode.com/svn/trunk/src' | 56 NACLPORTS_URL = 'https://naclports.googlecode.com/svn/trunk/src' |
57 NACLPORTS_REV = 774 | 57 NACLPORTS_REV = 850 |
58 | 58 |
59 GYPBUILD_DIR = 'gypbuild' | 59 GYPBUILD_DIR = 'gypbuild' |
60 | 60 |
61 options = None | 61 options = None |
62 | 62 |
63 | 63 |
64 def GetGlibcToolchain(host_arch): | 64 def GetGlibcToolchain(host_arch): |
65 tcdir = os.path.join(NACL_DIR, 'toolchain', '.tars') | 65 tcdir = os.path.join(NACL_DIR, 'toolchain', '.tars') |
66 tcname = 'toolchain_%s_%s.tar.bz2' % (getos.GetPlatform(), host_arch) | 66 tcname = 'toolchain_%s_%s.tar.bz2' % (getos.GetPlatform(), host_arch) |
67 return os.path.join(tcdir, tcname) | 67 return os.path.join(tcdir, tcname) |
(...skipping 870 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
938 BuildStepArchiveSDKTools() | 938 BuildStepArchiveSDKTools() |
939 | 939 |
940 return 0 | 940 return 0 |
941 | 941 |
942 | 942 |
943 if __name__ == '__main__': | 943 if __name__ == '__main__': |
944 try: | 944 try: |
945 sys.exit(main(sys.argv)) | 945 sys.exit(main(sys.argv)) |
946 except KeyboardInterrupt: | 946 except KeyboardInterrupt: |
947 buildbot_common.ErrorExit('build_sdk: interrupted') | 947 buildbot_common.ErrorExit('build_sdk: interrupted') |
OLD | NEW |