Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(252)

Side by Side Diff: build/vs_toolchain.py

Issue 2950223002: Updating VS 2015 package with no vctip.exe (Closed)
Patch Set: Created 3 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #!/usr/bin/env python 1 #!/usr/bin/env python
2 # Copyright 2014 The Chromium Authors. All rights reserved. 2 # Copyright 2014 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 import glob 6 import glob
7 import json 7 import json
8 import os 8 import os
9 import pipes 9 import pipes
10 import platform 10 import platform
(...skipping 321 matching lines...) Expand 10 before | Expand all | Expand 10 after
332 '10 SDK.' % full_path) 332 '10 SDK.' % full_path)
333 target_path = os.path.join(target_dir, debug_file) 333 target_path = os.path.join(target_dir, debug_file)
334 _CopyRuntimeImpl(target_path, full_path) 334 _CopyRuntimeImpl(target_path, full_path)
335 335
336 336
337 def _GetDesiredVsToolchainHashes(): 337 def _GetDesiredVsToolchainHashes():
338 """Load a list of SHA1s corresponding to the toolchains that we want installed 338 """Load a list of SHA1s corresponding to the toolchains that we want installed
339 to build with.""" 339 to build with."""
340 env_version = GetVisualStudioVersion() 340 env_version = GetVisualStudioVersion()
341 if env_version == '2015': 341 if env_version == '2015':
342 # Update 3 final with fixed 10.0.15063.0 SDK and patched event.h. 342 # Update 3 final with 10.0.15063.468 SDK and no vctip.exe.
343 return ['a11b39300bafe01d9d46bbc16483e373503acc29'] 343 return ['f53e4598951162bad6330f7a167486c7ae5db1e5']
344 if env_version == '2017': 344 if env_version == '2017':
345 # VS 2017 Update 3 Preview 2 with 10.0.15063.0 SDK and patched event.h. 345 # VS 2017 Update 3 Preview 2 with 10.0.15063.0 SDK and patched event.h.
346 return ['425bd64734a387734dfcf445b285a7c5073e4262'] 346 return ['425bd64734a387734dfcf445b285a7c5073e4262']
347 raise Exception('Unsupported VS version %s' % env_version) 347 raise Exception('Unsupported VS version %s' % env_version)
348 348
349 349
350 def ShouldUpdateToolchain(): 350 def ShouldUpdateToolchain():
351 """Check if the toolchain should be upgraded.""" 351 """Check if the toolchain should be upgraded."""
352 if not os.path.exists(json_data_file): 352 if not os.path.exists(json_data_file):
353 return True 353 return True
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
440 'copy_dlls': CopyDlls, 440 'copy_dlls': CopyDlls,
441 } 441 }
442 if len(sys.argv) < 2 or sys.argv[1] not in commands: 442 if len(sys.argv) < 2 or sys.argv[1] not in commands:
443 print >>sys.stderr, 'Expected one of: %s' % ', '.join(commands) 443 print >>sys.stderr, 'Expected one of: %s' % ', '.join(commands)
444 return 1 444 return 1
445 return commands[sys.argv[1]](*sys.argv[2:]) 445 return commands[sys.argv[1]](*sys.argv[2:])
446 446
447 447
448 if __name__ == '__main__': 448 if __name__ == '__main__':
449 sys.exit(main()) 449 sys.exit(main())
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698