OLD | NEW |
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 129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
140 ] | 140 ] |
141 default_output_extension = ".lib" | 141 default_output_extension = ".lib" |
142 | 142 |
143 # The use of inputs_newline is to work around a fixed per-line buffer | 143 # The use of inputs_newline is to work around a fixed per-line buffer |
144 # size in the linker. | 144 # size in the linker. |
145 rspfile_content = "{{inputs_newline}}" | 145 rspfile_content = "{{inputs_newline}}" |
146 } | 146 } |
147 | 147 |
148 tool("solink") { | 148 tool("solink") { |
149 dllname = "{{root_out_dir}}/{{target_output_name}}{{output_extension}}" #
e.g. foo.dll | 149 dllname = "{{root_out_dir}}/{{target_output_name}}{{output_extension}}" #
e.g. foo.dll |
150 libname = | 150 libname = "${dllname}.lib" # e.g. foo.dll.lib |
151 "{{root_out_dir}}/{{target_output_name}}{{output_extension}}.lib" # e
.g. foo.dll.lib | |
152 rspfile = "${dllname}.rsp" | 151 rspfile = "${dllname}.rsp" |
153 | 152 |
154 link_command = "$python_path gyp-win-tool link-wrapper $env False link.exe
/nologo /IMPLIB:$libname /DLL /OUT:$dllname /PDB:${dllname}.pdb @$rspfile" | 153 link_command = "$python_path gyp-win-tool link-wrapper $env False link.exe
/nologo /IMPLIB:$libname /DLL /OUT:$dllname /PDB:${dllname}.pdb @$rspfile" |
155 | 154 |
156 # TODO(brettw) support manifests | 155 # TODO(brettw) support manifests |
157 #manifest_command = "$python_path gyp-win-tool manifest-wrapper $env mt.ex
e -nologo -manifest $manifests -out:${dllname}.manifest" | 156 #manifest_command = "$python_path gyp-win-tool manifest-wrapper $env mt.ex
e -nologo -manifest $manifests -out:${dllname}.manifest" |
158 #command = "cmd /c $link_command && $manifest_command" | 157 #command = "cmd /c $link_command && $manifest_command" |
159 command = link_command | 158 command = link_command |
160 | 159 |
161 default_output_extension = ".dll" | 160 default_output_extension = ".dll" |
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
272 } | 271 } |
273 | 272 |
274 msvc_toolchain("winrt_x64") { | 273 msvc_toolchain("winrt_x64") { |
275 environment = "environment.winrt_x64" | 274 environment = "environment.winrt_x64" |
276 cl = "${goma_prefix}\"${vc_bin_dir}/cl.exe\"" | 275 cl = "${goma_prefix}\"${vc_bin_dir}/cl.exe\"" |
277 is_clang = false | 276 is_clang = false |
278 | 277 |
279 current_cpu = "x64" | 278 current_cpu = "x64" |
280 current_os = current_os | 279 current_os = current_os |
281 } | 280 } |
OLD | NEW |