| 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 = 757 | 57 NACLPORTS_REV = 774 |
| 58 | 58 |
| 59 # TODO(binji): horrible hack to make the Windows builders go green... | 59 # TODO(binji): horrible hack to make the Windows builders go green... |
| 60 # Windows has a path length limit of 255 characters, after joining cwd with a | 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 | 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. | 62 # we'll temporarily use a shorter build directory name to make it all work. |
| 63 # See http://crbug.com/245453 | 63 # See http://crbug.com/245453 |
| 64 GYPBUILD_DIR = 'gb' # Was 'gypbuild' | 64 GYPBUILD_DIR = 'gb' # Was 'gypbuild' |
| 65 | 65 |
| 66 options = None | 66 options = None |
| 67 | 67 |
| (...skipping 906 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 974 BuildStepArchiveSDKTools() | 974 BuildStepArchiveSDKTools() |
| 975 | 975 |
| 976 return 0 | 976 return 0 |
| 977 | 977 |
| 978 | 978 |
| 979 if __name__ == '__main__': | 979 if __name__ == '__main__': |
| 980 try: | 980 try: |
| 981 sys.exit(main(sys.argv)) | 981 sys.exit(main(sys.argv)) |
| 982 except KeyboardInterrupt: | 982 except KeyboardInterrupt: |
| 983 buildbot_common.ErrorExit('build_sdk: interrupted') | 983 buildbot_common.ErrorExit('build_sdk: interrupted') |
| OLD | NEW |