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

Side by Side Diff: build/vs_toolchain.py

Issue 720033003: Update to VS2013 Update 4, and Windows SDK 8.1 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: ntddi Created 6 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/toolchain_vs2013.hash ('k') | build/win_is_xtree_patched.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 113 matching lines...) Expand 10 before | Expand all | Expand 10 after
124 copy_runtime_impl(os.path.join(out_release, pgo_runtime_dll), source_x86) 124 copy_runtime_impl(os.path.join(out_release, pgo_runtime_dll), source_x86)
125 source_x64 = os.path.join(pgo_x64_runtime_dir, pgo_runtime_dll) 125 source_x64 = os.path.join(pgo_x64_runtime_dir, pgo_runtime_dll)
126 if os.path.exists(source_x64): 126 if os.path.exists(source_x64):
127 copy_runtime_impl(os.path.join(out_release_x64, pgo_runtime_dll), 127 copy_runtime_impl(os.path.join(out_release_x64, pgo_runtime_dll),
128 source_x64) 128 source_x64)
129 129
130 130
131 def _GetDesiredVsToolchainHashes(): 131 def _GetDesiredVsToolchainHashes():
132 """Load a list of SHA1s corresponding to the toolchains that we want installed 132 """Load a list of SHA1s corresponding to the toolchains that we want installed
133 to build with.""" 133 to build with."""
134 sha1path = os.path.join(script_dir, 134 sha1path = os.path.join(script_dir, 'toolchain_vs2013.hash')
135 '..', 'buildtools', 'toolchain_vs2013.hash')
136 with open(sha1path, 'rb') as f: 135 with open(sha1path, 'rb') as f:
137 return f.read().strip().splitlines() 136 return f.read().strip().splitlines()
138 137
139 138
140 def Update(): 139 def Update():
141 """Requests an update of the toolchain to the specific hashes we have at 140 """Requests an update of the toolchain to the specific hashes we have at
142 this revision. The update outputs a .json of the various configuration 141 this revision. The update outputs a .json of the various configuration
143 information required to pass to gyp which we use in |GetToolchainDir()|. 142 information required to pass to gyp which we use in |GetToolchainDir()|.
144 """ 143 """
145 depot_tools_win_toolchain = \ 144 depot_tools_win_toolchain = \
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
192 # CopyVsRuntimeDlls via import, currently). 191 # CopyVsRuntimeDlls via import, currently).
193 } 192 }
194 if len(sys.argv) < 2 or sys.argv[1] not in commands: 193 if len(sys.argv) < 2 or sys.argv[1] not in commands:
195 print >>sys.stderr, 'Expected one of: %s' % ', '.join(commands) 194 print >>sys.stderr, 'Expected one of: %s' % ', '.join(commands)
196 return 1 195 return 1
197 return commands[sys.argv[1]]() 196 return commands[sys.argv[1]]()
198 197
199 198
200 if __name__ == '__main__': 199 if __name__ == '__main__':
201 sys.exit(main()) 200 sys.exit(main())
OLDNEW
« no previous file with comments | « build/toolchain_vs2013.hash ('k') | build/win_is_xtree_patched.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698