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

Side by Side Diff: build/toolchain/win/BUILD.gn

Issue 754433003: Update from https://crrev.com/305340 (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: 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
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 import("//build/config/win/visual_studio_version.gni") 5 import("//build/config/win/visual_studio_version.gni")
6 import("//build/toolchain/goma.gni") 6 import("//build/toolchain/goma.gni")
7 7
8 # Should only be running on Windows. 8 # Should only be running on Windows.
9 assert(is_win) 9 assert(is_win)
10 10
11 # Setup the Visual Studio state. 11 # Setup the Visual Studio state.
12 # 12 #
13 # Its arguments are the VS path and the compiler wrapper tool. It will write 13 # Its arguments are the VS path and the compiler wrapper tool. It will write
14 # "environment.x86" and "environment.x64" to the build directory and return a 14 # "environment.x86" and "environment.x64" to the build directory and return a
15 # list to us. 15 # list to us.
16 gyp_win_tool_path = rebase_path("//tools/gyp/pylib/gyp/win_tool.py", 16 gyp_win_tool_path = rebase_path("//tools/gyp/pylib/gyp/win_tool.py",
17 root_build_dir) 17 root_build_dir)
18 exec_script("setup_toolchain.py", 18 exec_script("setup_toolchain.py",
19 [ visual_studio_path, gyp_win_tool_path, windows_sdk_path ]) 19 [
20 visual_studio_path,
21 gyp_win_tool_path,
22 windows_sdk_path,
23 visual_studio_runtime_dirs
24 ])
20 25
21 # This value will be inherited in the toolchain below. 26 # This value will be inherited in the toolchain below.
22 concurrent_links = exec_script("../get_concurrent_links.py", [], "value") 27 concurrent_links = exec_script("../get_concurrent_links.py", [], "value")
23 28
24 # Parameters: 29 # Parameters:
25 # cpu_arch: cpu_arch to pass as a build arg 30 # cpu_arch: cpu_arch to pass as a build arg
26 # environment: File name of environment file. 31 # environment: File name of environment file.
27 template("msvc_toolchain") { 32 template("msvc_toolchain") {
28 if (defined(invoker.concurrent_links)) { 33 if (defined(invoker.concurrent_links)) {
29 concurrent_links = invoker.concurrent_links 34 concurrent_links = invoker.concurrent_links
(...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after
177 cpu_arch = "x86" 182 cpu_arch = "x86"
178 } 183 }
179 } 184 }
180 185
181 if (cpu_arch == "x64") { 186 if (cpu_arch == "x64") {
182 msvc_toolchain("64") { 187 msvc_toolchain("64") {
183 environment = "environment.x64" 188 environment = "environment.x64"
184 cpu_arch = "x64" 189 cpu_arch = "x64"
185 } 190 }
186 } 191 }
OLDNEW
« no previous file with comments | « build/secondary/third_party/leveldatabase/BUILD.gn ('k') | build/toolchain/win/setup_toolchain.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698