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

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

Issue 1275983002: Restat shared library link ops in GN 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 145 matching lines...) Expand 10 before | Expand all | Expand 10 after
156 156
157 default_output_extension = ".dll" 157 default_output_extension = ".dll"
158 description = "LINK(DLL) {{output}}" 158 description = "LINK(DLL) {{output}}"
159 outputs = [ 159 outputs = [
160 dllname, 160 dllname,
161 libname, 161 libname,
162 ] 162 ]
163 link_output = libname 163 link_output = libname
164 depend_output = libname 164 depend_output = libname
165 165
166 # Since the above commands only updates the .lib file when it changes, ask
167 # Ninja to check if the timestamp actually changed to know if downstream
168 # dependencies should be recompiled.
169 restat = true
170
166 # The use of inputs_newline is to work around a fixed per-line buffer 171 # The use of inputs_newline is to work around a fixed per-line buffer
167 # size in the linker. 172 # size in the linker.
168 rspfile_content = "{{libs}} {{solibs}} {{inputs_newline}} {{ldflags}}" 173 rspfile_content = "{{libs}} {{solibs}} {{inputs_newline}} {{ldflags}}"
169 } 174 }
170 175
171 tool("link") { 176 tool("link") {
172 rspfile = "{{output}}.rsp" 177 rspfile = "{{output}}.rsp"
173 178
174 link_command = "$python_path gyp-win-tool link-wrapper $env False link.exe /nologo /OUT:{{output}} /PDB:{{output}}.pdb @$rspfile" 179 link_command = "$python_path gyp-win-tool link-wrapper $env False link.exe /nologo /OUT:{{output}} /PDB:{{output}}.pdb @$rspfile"
175 180
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
263 } 268 }
264 269
265 msvc_toolchain("winrt_x64") { 270 msvc_toolchain("winrt_x64") {
266 environment = "environment.winrt_x64" 271 environment = "environment.winrt_x64"
267 cl = "${goma_prefix}\"${vc_bin_dir}/cl.exe\"" 272 cl = "${goma_prefix}\"${vc_bin_dir}/cl.exe\""
268 is_clang = false 273 is_clang = false
269 274
270 current_cpu = "x64" 275 current_cpu = "x64"
271 current_os = current_os 276 current_os = current_os
272 } 277 }
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