OLD | NEW |
1 # Copyright 2014 The Chromium Authors. All rights reserved. | 1 # Copyright 2014 The Chromium Authors. All rights reserved. |
2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
4 | 4 |
5 import json | 5 import json |
6 import os | 6 import os |
7 import pipes | 7 import pipes |
8 import shutil | 8 import shutil |
9 import subprocess | 9 import subprocess |
10 import sys | 10 import sys |
(...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
182 _CopyRuntime2013( | 182 _CopyRuntime2013( |
183 target_dir, runtime_dir, 'msvc%s' + _VersionNumber() + 'd.dll') | 183 target_dir, runtime_dir, 'msvc%s' + _VersionNumber() + 'd.dll') |
184 | 184 |
185 | 185 |
186 def _GetDesiredVsToolchainHashes(): | 186 def _GetDesiredVsToolchainHashes(): |
187 """Load a list of SHA1s corresponding to the toolchains that we want installed | 187 """Load a list of SHA1s corresponding to the toolchains that we want installed |
188 to build with.""" | 188 to build with.""" |
189 # TODO(scottmg): If explicitly set to VS2015 override hashes to the VS2015 RC | 189 # TODO(scottmg): If explicitly set to VS2015 override hashes to the VS2015 RC |
190 # toolchain. http://crbug.com/492774. | 190 # toolchain. http://crbug.com/492774. |
191 if os.environ.get('GYP_MSVS_VERSION') == '2015': | 191 if os.environ.get('GYP_MSVS_VERSION') == '2015': |
192 return ['89341a333306b216e0121fcf2495d04ccbb8c4fc'] | 192 return ['71b723e24b0be4199a0363b1468ae9b2196e729e'] |
193 else: | 193 else: |
194 # Default to VS2013. | 194 # Default to VS2013. |
195 return ['ee7d718ec60c2dc5d255bbe325909c2021a7efef'] | 195 return ['ee7d718ec60c2dc5d255bbe325909c2021a7efef'] |
196 | 196 |
197 | 197 |
198 def Update(): | 198 def Update(): |
199 """Requests an update of the toolchain to the specific hashes we have at | 199 """Requests an update of the toolchain to the specific hashes we have at |
200 this revision. The update outputs a .json of the various configuration | 200 this revision. The update outputs a .json of the various configuration |
201 information required to pass to gyp which we use in |GetToolchainDir()|. | 201 information required to pass to gyp which we use in |GetToolchainDir()|. |
202 """ | 202 """ |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
250 'copy_dlls': CopyDlls, | 250 'copy_dlls': CopyDlls, |
251 } | 251 } |
252 if len(sys.argv) < 2 or sys.argv[1] not in commands: | 252 if len(sys.argv) < 2 or sys.argv[1] not in commands: |
253 print >>sys.stderr, 'Expected one of: %s' % ', '.join(commands) | 253 print >>sys.stderr, 'Expected one of: %s' % ', '.join(commands) |
254 return 1 | 254 return 1 |
255 return commands[sys.argv[1]](*sys.argv[2:]) | 255 return commands[sys.argv[1]](*sys.argv[2:]) |
256 | 256 |
257 | 257 |
258 if __name__ == '__main__': | 258 if __name__ == '__main__': |
259 sys.exit(main()) | 259 sys.exit(main()) |
OLD | NEW |