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