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 | 47 |
48 | 48 |
49 # Add SDK make tools scripts to the python path. | 49 # Add SDK make tools scripts to the python path. |
50 sys.path.append(os.path.join(SDK_SRC_DIR, 'tools')) | 50 sys.path.append(os.path.join(SDK_SRC_DIR, 'tools')) |
51 sys.path.append(os.path.join(NACL_DIR, 'build')) | 51 sys.path.append(os.path.join(NACL_DIR, 'build')) |
52 | 52 |
53 import getos | 53 import getos |
54 import http_download | 54 import http_download |
55 import oshelpers | 55 import oshelpers |
56 | 56 |
57 GSTORE = 'http://commondatastorage.googleapis.com/nativeclient-mirror/nacl/' | 57 GSTORE = 'https://commondatastorage.googleapis.com/nativeclient-mirror/nacl/' |
58 MAKE = 'nacl_sdk/make_3_81/make.exe' | 58 MAKE = 'nacl_sdk/make_3_81/make.exe' |
59 CYGTAR = os.path.join(NACL_DIR, 'build', 'cygtar.py') | 59 CYGTAR = os.path.join(NACL_DIR, 'build', 'cygtar.py') |
60 | 60 |
61 | 61 |
62 def BuildOutputDir(*paths): | 62 def BuildOutputDir(*paths): |
63 return os.path.join(OUT_DIR, *paths) | 63 return os.path.join(OUT_DIR, *paths) |
64 | 64 |
65 | 65 |
66 def GetGlibcToolchain(platform, arch): | 66 def GetGlibcToolchain(platform, arch): |
67 tcdir = os.path.join(NACL_DIR, 'toolchain', '.tars') | 67 tcdir = os.path.join(NACL_DIR, 'toolchain', '.tars') |
(...skipping 763 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
831 # Archive on non-trybots. | 831 # Archive on non-trybots. |
832 if options.archive or buildbot_common.IsSDKBuilder(): | 832 if options.archive or buildbot_common.IsSDKBuilder(): |
833 BuildStepArchiveBundle(pepper_ver, clnumber, tarfile) | 833 BuildStepArchiveBundle(pepper_ver, clnumber, tarfile) |
834 BuildStepArchiveSDKTools() | 834 BuildStepArchiveSDKTools() |
835 | 835 |
836 return 0 | 836 return 0 |
837 | 837 |
838 | 838 |
839 if __name__ == '__main__': | 839 if __name__ == '__main__': |
840 sys.exit(main(sys.argv)) | 840 sys.exit(main(sys.argv)) |
OLD | NEW |