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

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

Issue 1468643002: Tweaks to vs_toolchain to simplify it, and support gn VS 2015 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove default value for argument 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/compiler/BUILD.gn ('k') | build/vs_toolchain.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 (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 import("//build/toolchain/toolchain.gni") 7 import("//build/toolchain/toolchain.gni")
8 8
9 # Should only be running on Windows. 9 # Should only be running on Windows.
10 assert(is_win) 10 assert(is_win)
11 11
12 # Setup the Visual Studio state. 12 # Setup the Visual Studio state.
13 # 13 #
14 # Its arguments are the VS path and the compiler wrapper tool. It will write 14 # Its arguments are the VS path and the compiler wrapper tool. It will write
15 # "environment.x86" and "environment.x64" to the build directory and return a 15 # "environment.x86" and "environment.x64" to the build directory and return a
16 # list to us. 16 # list to us.
17 gyp_win_tool_path = 17 gyp_win_tool_path =
18 rebase_path("//tools/gyp/pylib/gyp/win_tool.py", root_build_dir) 18 rebase_path("//tools/gyp/pylib/gyp/win_tool.py", root_build_dir)
19 19
20 if (use_goma) { 20 if (use_goma) {
21 goma_prefix = "$goma_dir/gomacc.exe " 21 goma_prefix = "$goma_dir/gomacc.exe "
22 } else { 22 } else {
23 goma_prefix = "" 23 goma_prefix = ""
24 } 24 }
25 25
26 # This value will be inherited in the toolchain below. 26 # This value will be inherited in the toolchain below.
27 concurrent_links = exec_script("../get_concurrent_links.py", [], "value") 27 concurrent_links = exec_script("../get_concurrent_links.py", [], "value")
28 28
29 # Copy the VS runtime DLL for the default toolchain the root build directory so 29 # Copy the VS runtime DLL for the default toolchain to the root build directory
30 # things will run. 30 # so things will run.
31 if (current_toolchain == default_toolchain) { 31 if (current_toolchain == default_toolchain) {
32 if (is_debug) { 32 if (is_debug) {
33 configuration_name = "Debug" 33 configuration_name = "Debug"
34 } else { 34 } else {
35 configuration_name = "Release" 35 configuration_name = "Release"
36 } 36 }
37 exec_script("../../vs_toolchain.py", 37 exec_script("../../vs_toolchain.py",
38 [ 38 [
39 "copy_dlls", 39 "copy_dlls",
40 rebase_path(root_build_dir), 40 rebase_path(root_build_dir),
(...skipping 261 matching lines...) Expand 10 before | Expand all | Expand 10 after
302 302
303 msvc_toolchain("winrt_x64") { 303 msvc_toolchain("winrt_x64") {
304 environment = "environment.winrt_x64" 304 environment = "environment.winrt_x64"
305 cl = "${goma_prefix}\"${vc_bin_dir}/cl.exe\"" 305 cl = "${goma_prefix}\"${vc_bin_dir}/cl.exe\""
306 is_clang = false 306 is_clang = false
307 307
308 current_cpu = "x64" 308 current_cpu = "x64"
309 current_os = current_os 309 current_os = current_os
310 } 310 }
311 } 311 }
OLDNEW
« no previous file with comments | « build/config/compiler/BUILD.gn ('k') | build/vs_toolchain.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698