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

Side by Side Diff: build/toolchain/win/setup_toolchain.py

Issue 1150183009: Laying the groundwork for targeting WinRT. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Added Macadamian to the AUTHORS. Created 5 years, 4 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 | « build/toolchain/win/BUILD.gn ('k') | 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 # Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 # Copyright (c) 2013 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 # Copies the given "win tool" (which the toolchain uses to wrap compiler 5 # Copies the given "win tool" (which the toolchain uses to wrap compiler
6 # invocations) and the environment blocks for the 32-bit and 64-bit builds on 6 # invocations) and the environment blocks for the 32-bit and 64-bit builds on
7 # Windows to the build directory. 7 # Windows to the build directory.
8 # 8 #
9 # The arguments are the visual studio install location and the location of the 9 # The arguments are the visual studio install location and the location of the
10 # win tool. The script assumes that the root build directory is the current dir 10 # win tool. The script assumes that the root build directory is the current dir
(...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after
139 if win_sdk_path: 139 if win_sdk_path:
140 additional_includes = ('{sdk_dir}\\Include\\shared;' + 140 additional_includes = ('{sdk_dir}\\Include\\shared;' +
141 '{sdk_dir}\\Include\\um;' + 141 '{sdk_dir}\\Include\\um;' +
142 '{sdk_dir}\\Include\\winrt;').format( 142 '{sdk_dir}\\Include\\winrt;').format(
143 sdk_dir=win_sdk_path) 143 sdk_dir=win_sdk_path)
144 env['INCLUDE'] = additional_includes + env['INCLUDE'] 144 env['INCLUDE'] = additional_includes + env['INCLUDE']
145 env_block = _FormatAsEnvironmentBlock(env) 145 env_block = _FormatAsEnvironmentBlock(env)
146 with open('environment.' + cpu, 'wb') as f: 146 with open('environment.' + cpu, 'wb') as f:
147 f.write(env_block) 147 f.write(env_block)
148 148
149 # Create a store app version of the environment.
150 if 'LIB' in env:
151 env['LIB'] = env['LIB'] .replace(r'\VC\LIB', r'\VC\LIB\STORE')
152 if 'LIBPATH' in env:
153 env['LIBPATH'] = env['LIBPATH'].replace(r'\VC\LIB', r'\VC\LIB\STORE')
154 env_block = _FormatAsEnvironmentBlock(env)
155 with open('environment.winrt_' + cpu, 'wb') as f:
156 f.write(env_block)
157
149 assert vc_bin_dir 158 assert vc_bin_dir
150 print 'vc_bin_dir = "%s"' % vc_bin_dir 159 print 'vc_bin_dir = "%s"' % vc_bin_dir
151 160
152 161
153 if __name__ == '__main__': 162 if __name__ == '__main__':
154 main() 163 main()
OLDNEW
« no previous file with comments | « build/toolchain/win/BUILD.gn ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698