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 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 = 757 | 57 NACLPORTS_REV = 757 |
58 | 58 |
59 # TODO(binji): horrible hack to make the Windows builders go green... | 59 GYPBUILD_DIR = 'gypbuild' |
60 # Windows has a path length limit of 255 characters, after joining cwd with a | |
61 # relative path. Some of the Windows builders are over by just a little bit, so | |
62 # we'll temporarily use a shorter build directory name to make it all work. | |
63 # See http://crbug.com/245453 | |
64 GYPBUILD_DIR = 'gb' # Was 'gypbuild' | |
65 | 60 |
66 options = None | 61 options = None |
67 | 62 |
68 | 63 |
69 def GetGlibcToolchain(platform, arch): | 64 def GetGlibcToolchain(platform, arch): |
70 tcdir = os.path.join(NACL_DIR, 'toolchain', '.tars') | 65 tcdir = os.path.join(NACL_DIR, 'toolchain', '.tars') |
71 tcname = 'toolchain_%s_%s.tar.bz2' % (platform, arch) | 66 tcname = 'toolchain_%s_%s.tar.bz2' % (platform, arch) |
72 return os.path.join(tcdir, tcname) | 67 return os.path.join(tcdir, tcname) |
73 | 68 |
74 | 69 |
(...skipping 899 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
974 BuildStepArchiveSDKTools() | 969 BuildStepArchiveSDKTools() |
975 | 970 |
976 return 0 | 971 return 0 |
977 | 972 |
978 | 973 |
979 if __name__ == '__main__': | 974 if __name__ == '__main__': |
980 try: | 975 try: |
981 sys.exit(main(sys.argv)) | 976 sys.exit(main(sys.argv)) |
982 except KeyboardInterrupt: | 977 except KeyboardInterrupt: |
983 buildbot_common.ErrorExit('build_sdk: interrupted') | 978 buildbot_common.ErrorExit('build_sdk: interrupted') |
OLD | NEW |