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

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

Issue 1277243002: Copy only the DLLs for the default toolchain on Windows. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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 | « no previous file | 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 declare_args() { 5 declare_args() {
6 # Path to the directory containing the VC binaries for the right 6 # Path to the directory containing the VC binaries for the right
7 # combination of host and target architectures. Currently only the 7 # combination of host and target architectures. Currently only the
8 # 64-bit host toolchain is supported, with either 32-bit or 64-bit targets. 8 # 64-bit host toolchain is supported, with either 32-bit or 64-bit targets.
9 # If vc_bin_dir is not specified on the command line (and it normally 9 # If vc_bin_dir is not specified on the command line (and it normally
10 # isn't), we will dynamically determine the right value to use at runtime. 10 # isn't), we will dynamically determine the right value to use at runtime.
(...skipping 30 matching lines...) Expand all
41 41
42 if (use_goma) { 42 if (use_goma) {
43 goma_prefix = "$goma_dir/gomacc.exe " 43 goma_prefix = "$goma_dir/gomacc.exe "
44 } else { 44 } else {
45 goma_prefix = "" 45 goma_prefix = ""
46 } 46 }
47 47
48 # This value will be inherited in the toolchain below. 48 # This value will be inherited in the toolchain below.
49 concurrent_links = exec_script("../get_concurrent_links.py", [], "value") 49 concurrent_links = exec_script("../get_concurrent_links.py", [], "value")
50 50
51 # Copy the VS runtime DLL for the default toolchain the root build directory so
52 # things will run.
53 if (current_toolchain == default_toolchain) {
54 if (is_debug) {
55 configuration_name = "Debug"
56 } else {
57 configuration_name = "Release"
58 }
59 exec_script("../../vs_toolchain.py",
60 [
61 "copy_dlls",
62 rebase_path(root_build_dir),
63 configuration_name,
64 target_cpu,
65 ])
66 }
67
51 # Parameters: 68 # Parameters:
52 # current_cpu: current_cpu to pass as a build arg 69 # current_cpu: current_cpu to pass as a build arg
53 # current_os: current_os to pass as a build arg 70 # current_os: current_os to pass as a build arg
54 # environment: File name of environment file. 71 # environment: File name of environment file.
55 template("msvc_toolchain") { 72 template("msvc_toolchain") {
56 if (defined(invoker.concurrent_links)) { 73 if (defined(invoker.concurrent_links)) {
57 concurrent_links = invoker.concurrent_links 74 concurrent_links = invoker.concurrent_links
58 } 75 }
59 76
60 env = invoker.environment 77 env = invoker.environment
61 78
62 if (is_debug) {
63 configuration = "Debug"
64 } else {
65 configuration = "Release"
66 }
67 exec_script("../../vs_toolchain.py",
68 [
69 "copy_dlls",
70 rebase_path(root_build_dir),
71 configuration,
72 invoker.current_cpu,
73 ])
74
75 cl = invoker.cl 79 cl = invoker.cl
76 80
77 toolchain(target_name) { 81 toolchain(target_name) {
78 # Make these apply to all tools below. 82 # Make these apply to all tools below.
79 lib_switch = "" 83 lib_switch = ""
80 lib_dir_switch = "/LIBPATH:" 84 lib_dir_switch = "/LIBPATH:"
81 85
82 tool("cc") { 86 tool("cc") {
83 rspfile = "{{output}}.rsp" 87 rspfile = "{{output}}.rsp"
84 precompiled_header_type = "msvc" 88 precompiled_header_type = "msvc"
(...skipping 183 matching lines...) Expand 10 before | Expand all | Expand 10 after
268 } 272 }
269 273
270 msvc_toolchain("winrt_x64") { 274 msvc_toolchain("winrt_x64") {
271 environment = "environment.winrt_x64" 275 environment = "environment.winrt_x64"
272 cl = "${goma_prefix}\"${vc_bin_dir}/cl.exe\"" 276 cl = "${goma_prefix}\"${vc_bin_dir}/cl.exe\""
273 is_clang = false 277 is_clang = false
274 278
275 current_cpu = "x64" 279 current_cpu = "x64"
276 current_os = current_os 280 current_os = current_os
277 } 281 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698