| 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 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 | 7 |
| 8 # Should only be running on Windows. | 8 # Should only be running on Windows. |
| 9 assert(is_win) | 9 assert(is_win) |
| 10 | 10 |
| (...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 104 #manifest_command = "$python_path gyp-win-tool manifest-wrapper $env mt.ex
e -nologo -manifest $manifests -out:${dllname}.manifest" | 104 #manifest_command = "$python_path gyp-win-tool manifest-wrapper $env mt.ex
e -nologo -manifest $manifests -out:${dllname}.manifest" |
| 105 #command = "cmd /c $link_command && $manifest_command" | 105 #command = "cmd /c $link_command && $manifest_command" |
| 106 command = link_command | 106 command = link_command |
| 107 | 107 |
| 108 default_output_extension = ".dll" | 108 default_output_extension = ".dll" |
| 109 description = "LINK(DLL) {{output}}" | 109 description = "LINK(DLL) {{output}}" |
| 110 outputs = [ | 110 outputs = [ |
| 111 dllname, | 111 dllname, |
| 112 libname, | 112 libname, |
| 113 ] | 113 ] |
| 114 link_output = libname |
| 115 depend_output = libname |
| 114 # The use of inputs_newline is to work around a fixed per-line buffer | 116 # The use of inputs_newline is to work around a fixed per-line buffer |
| 115 # size in the linker. | 117 # size in the linker. |
| 116 rspfile_content = "{{libs}} {{solibs}} {{inputs_newline}} {{ldflags}}" | 118 rspfile_content = "{{libs}} {{solibs}} {{inputs_newline}} {{ldflags}}" |
| 117 } | 119 } |
| 118 | 120 |
| 119 tool("link") { | 121 tool("link") { |
| 120 rspfile = "{{output}}.rsp" | 122 rspfile = "{{output}}.rsp" |
| 121 | 123 |
| 122 link_command = "$python_path gyp-win-tool link-wrapper $env False link.exe
/nologo /OUT:{{output}} /PDB:{{output}}.pdb @$rspfile" | 124 link_command = "$python_path gyp-win-tool link-wrapper $env False link.exe
/nologo /OUT:{{output}} /PDB:{{output}}.pdb @$rspfile" |
| 123 | 125 |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 163 msvc_toolchain("32") { | 165 msvc_toolchain("32") { |
| 164 environment = "environment.x86" | 166 environment = "environment.x86" |
| 165 cpu_arch = "x64" | 167 cpu_arch = "x64" |
| 166 } | 168 } |
| 167 | 169 |
| 168 msvc_toolchain("64") { | 170 msvc_toolchain("64") { |
| 169 environment = "environment.x64" | 171 environment = "environment.x64" |
| 170 cpu_arch = "x64" | 172 cpu_arch = "x64" |
| 171 force_win64 = true | 173 force_win64 = true |
| 172 } | 174 } |
| OLD | NEW |