| Index: build/toolchain/win/BUILD.gn
|
| diff --git a/build/toolchain/win/BUILD.gn b/build/toolchain/win/BUILD.gn
|
| index ccc0a9435f6fd2ab5da717e0b13066cdab60cd21..0549a6b698dc86a1a061076dc70158a8b4c4844d 100644
|
| --- a/build/toolchain/win/BUILD.gn
|
| +++ b/build/toolchain/win/BUILD.gn
|
| @@ -17,9 +17,8 @@
|
| # Its arguments are the VS path and the compiler wrapper tool. It will write
|
| # "environment.x86" and "environment.x64" to the build directory and return a
|
| # list to us.
|
| -
|
| -# This tool will is used as a wrapper for various commands below.
|
| -tool_wrapper_path = rebase_path("tool_wrapper.py", root_build_dir)
|
| +gyp_win_tool_path =
|
| + rebase_path("//tools/gyp/pylib/gyp/win_tool.py", root_build_dir)
|
|
|
| if (use_goma) {
|
| goma_prefix = "$goma_dir/gomacc.exe "
|
| @@ -161,7 +160,7 @@
|
| }
|
|
|
| tool("rc") {
|
| - command = "$python_path $tool_wrapper_path rc-wrapper $env rc.exe {{defines}} {{include_dirs}} /fo{{output}} {{source}}"
|
| + command = "$python_path gyp-win-tool rc-wrapper $env rc.exe {{defines}} {{include_dirs}} /fo{{output}} {{source}}"
|
| outputs = [
|
| "$object_subdir/{{source_name_part}}.res",
|
| ]
|
| @@ -174,7 +173,7 @@
|
| } else {
|
| ml = "ml.exe"
|
| }
|
| - command = "$python_path $tool_wrapper_path asm-wrapper $env $ml {{defines}} {{include_dirs}} {{asmflags}} /c /Fo{{output}} {{source}}"
|
| + command = "$python_path gyp-win-tool asm-wrapper $env $ml {{defines}} {{include_dirs}} {{asmflags}} /c /Fo{{output}} {{source}}"
|
| description = "ASM {{output}}"
|
| outputs = [
|
| "$object_subdir/{{source_name_part}}.obj",
|
| @@ -183,7 +182,7 @@
|
|
|
| tool("alink") {
|
| rspfile = "{{output}}.rsp"
|
| - command = "$python_path $tool_wrapper_path link-wrapper $env False $lib /nologo {{arflags}} /OUT:{{output}} @$rspfile"
|
| + command = "$python_path gyp-win-tool link-wrapper $env False $lib /nologo {{arflags}} /OUT:{{output}} @$rspfile"
|
| description = "LIB {{output}}"
|
| outputs = [
|
| # Ignore {{output_extension}} and always use .lib, there's no reason to
|
| @@ -205,7 +204,7 @@
|
| rspfile = "${dllname}.rsp"
|
| pool = "//build/toolchain:link_pool($default_toolchain)"
|
|
|
| - command = "$python_path $tool_wrapper_path link-wrapper $env False $link /nologo /IMPLIB:$libname /DLL /OUT:$dllname /PDB:$pdbname @$rspfile"
|
| + command = "$python_path gyp-win-tool link-wrapper $env False $link /nologo /IMPLIB:$libname /DLL /OUT:$dllname /PDB:$pdbname @$rspfile"
|
|
|
| default_output_extension = ".dll"
|
| default_output_dir = "{{root_out_dir}}"
|
| @@ -238,7 +237,7 @@
|
| rspfile = "${dllname}.rsp"
|
| pool = "//build/toolchain:link_pool($default_toolchain)"
|
|
|
| - command = "$python_path $tool_wrapper_path link-wrapper $env False $link /nologo /DLL /OUT:$dllname /PDB:$pdbname @$rspfile"
|
| + command = "$python_path gyp-win-tool link-wrapper $env False $link /nologo /DLL /OUT:$dllname /PDB:$pdbname @$rspfile"
|
|
|
| default_output_extension = ".dll"
|
| default_output_dir = "{{root_out_dir}}"
|
| @@ -262,7 +261,7 @@
|
| rspfile = "$exename.rsp"
|
| pool = "//build/toolchain:link_pool($default_toolchain)"
|
|
|
| - command = "$python_path $tool_wrapper_path link-wrapper $env False $link /nologo /OUT:$exename /PDB:$pdbname @$rspfile"
|
| + command = "$python_path gyp-win-tool link-wrapper $env False $link /nologo /OUT:$exename /PDB:$pdbname @$rspfile"
|
|
|
| default_output_extension = ".exe"
|
| default_output_dir = "{{root_out_dir}}"
|
| @@ -314,6 +313,7 @@
|
| x86_toolchain_data = exec_script("setup_toolchain.py",
|
| [
|
| visual_studio_path,
|
| + gyp_win_tool_path,
|
| windows_sdk_path,
|
| visual_studio_runtime_dirs,
|
| "x86",
|
| @@ -347,6 +347,7 @@
|
| x64_toolchain_data = exec_script("setup_toolchain.py",
|
| [
|
| visual_studio_path,
|
| + gyp_win_tool_path,
|
| windows_sdk_path,
|
| visual_studio_runtime_dirs,
|
| "x64",
|
|
|