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

Side by Side Diff: build/vs_toolchain.py

Issue 1378153003: win: Update to Win 10 SDK (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase for reland Created 5 years, 1 month 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 | « build/config/win/BUILD.gn ('k') | chrome/browser/ui/views/tabs/window_finder_win.cc » ('j') | 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 json 6 import json
7 import os 7 import os
8 import pipes 8 import pipes
9 import shutil 9 import shutil
10 import subprocess 10 import subprocess
(...skipping 173 matching lines...) Expand 10 before | Expand all | Expand 10 after
184 target_dir, runtime_dir, 'msvc%s' + _VersionNumber() + 'd.dll') 184 target_dir, runtime_dir, 'msvc%s' + _VersionNumber() + 'd.dll')
185 185
186 186
187 def _GetDesiredVsToolchainHashes(): 187 def _GetDesiredVsToolchainHashes():
188 """Load a list of SHA1s corresponding to the toolchains that we want installed 188 """Load a list of SHA1s corresponding to the toolchains that we want installed
189 to build with.""" 189 to build with."""
190 if os.environ.get('GYP_MSVS_VERSION') == '2015': 190 if os.environ.get('GYP_MSVS_VERSION') == '2015':
191 return ['49ae4b60d898182fc3f521c2fcda82c453915011'] 191 return ['49ae4b60d898182fc3f521c2fcda82c453915011']
192 else: 192 else:
193 # Default to VS2013. 193 # Default to VS2013.
194 return ['ee7d718ec60c2dc5d255bbe325909c2021a7efef'] 194 return ['9ff97c632ae1fee0c98bcd53e71770eb3a0d8deb']
195 195
196 196
197 def Update(force=False): 197 def Update(force=False):
198 """Requests an update of the toolchain to the specific hashes we have at 198 """Requests an update of the toolchain to the specific hashes we have at
199 this revision. The update outputs a .json of the various configuration 199 this revision. The update outputs a .json of the various configuration
200 information required to pass to gyp which we use in |GetToolchainDir()|. 200 information required to pass to gyp which we use in |GetToolchainDir()|.
201 """ 201 """
202 if force != False and force != '--force': 202 if force != False and force != '--force':
203 print >>sys.stderr, 'Unknown parameter "%s"' % force 203 print >>sys.stderr, 'Unknown parameter "%s"' % force
204 return 1 204 return 1
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
256 'copy_dlls': CopyDlls, 256 'copy_dlls': CopyDlls,
257 } 257 }
258 if len(sys.argv) < 2 or sys.argv[1] not in commands: 258 if len(sys.argv) < 2 or sys.argv[1] not in commands:
259 print >>sys.stderr, 'Expected one of: %s' % ', '.join(commands) 259 print >>sys.stderr, 'Expected one of: %s' % ', '.join(commands)
260 return 1 260 return 1
261 return commands[sys.argv[1]](*sys.argv[2:]) 261 return commands[sys.argv[1]](*sys.argv[2:])
262 262
263 263
264 if __name__ == '__main__': 264 if __name__ == '__main__':
265 sys.exit(main()) 265 sys.exit(main())
OLDNEW
« no previous file with comments | « build/config/win/BUILD.gn ('k') | chrome/browser/ui/views/tabs/window_finder_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698