OLD | NEW |
1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
2 # Copyright 2015 the V8 project authors. All rights reserved. | 2 # Copyright 2015 the V8 project authors. All rights reserved. |
3 # Copyright 2014 The Chromium Authors. All rights reserved. | 3 # Copyright 2014 The Chromium Authors. All rights reserved. |
4 # Use of this source code is governed by a BSD-style license that can be | 4 # Use of this source code is governed by a BSD-style license that can be |
5 # found in the LICENSE file. | 5 # found in the LICENSE file. |
6 | 6 |
7 import json | 7 import json |
8 import os | 8 import os |
9 import pipes | 9 import pipes |
10 import shutil | 10 import shutil |
(...skipping 173 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
184 target_dir, runtime_dir, 'msvc%s' + _VersionNumber() + '.dll') | 184 target_dir, runtime_dir, 'msvc%s' + _VersionNumber() + '.dll') |
185 if configuration == 'Debug': | 185 if configuration == 'Debug': |
186 _CopyRuntime2013( | 186 _CopyRuntime2013( |
187 target_dir, runtime_dir, 'msvc%s' + _VersionNumber() + 'd.dll') | 187 target_dir, runtime_dir, 'msvc%s' + _VersionNumber() + 'd.dll') |
188 | 188 |
189 | 189 |
190 def _GetDesiredVsToolchainHashes(): | 190 def _GetDesiredVsToolchainHashes(): |
191 """Load a list of SHA1s corresponding to the toolchains that we want installed | 191 """Load a list of SHA1s corresponding to the toolchains that we want installed |
192 to build with.""" | 192 to build with.""" |
193 if os.environ.get('GYP_MSVS_VERSION') == '2015': | 193 if os.environ.get('GYP_MSVS_VERSION') == '2015': |
194 return ['49ae4b60d898182fc3f521c2fcda82c453915011'] | 194 return ['5a85cf1ce842f7cc96b9d17039a445a9dc9cf0dd'] |
195 else: | 195 else: |
196 # Default to VS2013. | 196 # Default to VS2013. |
197 return ['ee7d718ec60c2dc5d255bbe325909c2021a7efef'] | 197 return ['9ff97c632ae1fee0c98bcd53e71770eb3a0d8deb'] |
198 | 198 |
199 | 199 |
200 def Update(force=False): | 200 def Update(force=False): |
201 """Requests an update of the toolchain to the specific hashes we have at | 201 """Requests an update of the toolchain to the specific hashes we have at |
202 this revision. The update outputs a .json of the various configuration | 202 this revision. The update outputs a .json of the various configuration |
203 information required to pass to gyp which we use in |GetToolchainDir()|. | 203 information required to pass to gyp which we use in |GetToolchainDir()|. |
204 """ | 204 """ |
205 if force != False and force != '--force': | 205 if force != False and force != '--force': |
206 print >>sys.stderr, 'Unknown parameter "%s"' % force | 206 print >>sys.stderr, 'Unknown parameter "%s"' % force |
207 return 1 | 207 return 1 |
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
259 'copy_dlls': CopyDlls, | 259 'copy_dlls': CopyDlls, |
260 } | 260 } |
261 if len(sys.argv) < 2 or sys.argv[1] not in commands: | 261 if len(sys.argv) < 2 or sys.argv[1] not in commands: |
262 print >>sys.stderr, 'Expected one of: %s' % ', '.join(commands) | 262 print >>sys.stderr, 'Expected one of: %s' % ', '.join(commands) |
263 return 1 | 263 return 1 |
264 return commands[sys.argv[1]](*sys.argv[2:]) | 264 return commands[sys.argv[1]](*sys.argv[2:]) |
265 | 265 |
266 | 266 |
267 if __name__ == '__main__': | 267 if __name__ == '__main__': |
268 sys.exit(main()) | 268 sys.exit(main()) |
OLD | NEW |