| Index: build/toolchain/win/BUILD.gn
|
| diff --git a/build/toolchain/win/BUILD.gn b/build/toolchain/win/BUILD.gn
|
| index 0549a6b698dc86a1a061076dc70158a8b4c4844d..d6364bd844f8c48b397bbc2ab09fa86973639583 100644
|
| --- a/build/toolchain/win/BUILD.gn
|
| +++ b/build/toolchain/win/BUILD.gn
|
| @@ -17,9 +17,14 @@ assert(is_win)
|
| # 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.
|
| +
|
| +# TODO bug 642014 remove this when all users of the script have been removed.
|
| gyp_win_tool_path =
|
| rebase_path("//tools/gyp/pylib/gyp/win_tool.py", root_build_dir)
|
|
|
| +# This tool will is used as a wrapper for various commands below.
|
| +tool_wrapper_path = rebase_path("tool_wrapper.py", root_build_dir)
|
| +
|
| if (use_goma) {
|
| goma_prefix = "$goma_dir/gomacc.exe "
|
| } else {
|
| @@ -160,7 +165,7 @@ template("msvc_toolchain") {
|
| }
|
|
|
| tool("rc") {
|
| - command = "$python_path gyp-win-tool rc-wrapper $env rc.exe {{defines}} {{include_dirs}} /fo{{output}} {{source}}"
|
| + command = "$python_path $tool_wrapper_path rc-wrapper $env rc.exe {{defines}} {{include_dirs}} /fo{{output}} {{source}}"
|
| outputs = [
|
| "$object_subdir/{{source_name_part}}.res",
|
| ]
|
| @@ -173,7 +178,7 @@ template("msvc_toolchain") {
|
| } else {
|
| ml = "ml.exe"
|
| }
|
| - command = "$python_path gyp-win-tool asm-wrapper $env $ml {{defines}} {{include_dirs}} {{asmflags}} /c /Fo{{output}} {{source}}"
|
| + command = "$python_path $tool_wrapper_path asm-wrapper $env $ml {{defines}} {{include_dirs}} {{asmflags}} /c /Fo{{output}} {{source}}"
|
| description = "ASM {{output}}"
|
| outputs = [
|
| "$object_subdir/{{source_name_part}}.obj",
|
| @@ -182,7 +187,7 @@ template("msvc_toolchain") {
|
|
|
| tool("alink") {
|
| rspfile = "{{output}}.rsp"
|
| - command = "$python_path gyp-win-tool link-wrapper $env False $lib /nologo {{arflags}} /OUT:{{output}} @$rspfile"
|
| + command = "$python_path $tool_wrapper_path 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
|
| @@ -204,7 +209,7 @@ template("msvc_toolchain") {
|
| rspfile = "${dllname}.rsp"
|
| pool = "//build/toolchain:link_pool($default_toolchain)"
|
|
|
| - command = "$python_path gyp-win-tool link-wrapper $env False $link /nologo /IMPLIB:$libname /DLL /OUT:$dllname /PDB:$pdbname @$rspfile"
|
| + command = "$python_path $tool_wrapper_path link-wrapper $env False $link /nologo /IMPLIB:$libname /DLL /OUT:$dllname /PDB:$pdbname @$rspfile"
|
|
|
| default_output_extension = ".dll"
|
| default_output_dir = "{{root_out_dir}}"
|
| @@ -237,7 +242,7 @@ template("msvc_toolchain") {
|
| rspfile = "${dllname}.rsp"
|
| pool = "//build/toolchain:link_pool($default_toolchain)"
|
|
|
| - command = "$python_path gyp-win-tool link-wrapper $env False $link /nologo /DLL /OUT:$dllname /PDB:$pdbname @$rspfile"
|
| + command = "$python_path $tool_wrapper_path link-wrapper $env False $link /nologo /DLL /OUT:$dllname /PDB:$pdbname @$rspfile"
|
|
|
| default_output_extension = ".dll"
|
| default_output_dir = "{{root_out_dir}}"
|
| @@ -261,7 +266,7 @@ template("msvc_toolchain") {
|
| rspfile = "$exename.rsp"
|
| pool = "//build/toolchain:link_pool($default_toolchain)"
|
|
|
| - command = "$python_path gyp-win-tool link-wrapper $env False $link /nologo /OUT:$exename /PDB:$pdbname @$rspfile"
|
| + command = "$python_path $tool_wrapper_path link-wrapper $env False $link /nologo /OUT:$exename /PDB:$pdbname @$rspfile"
|
|
|
| default_output_extension = ".exe"
|
| default_output_dir = "{{root_out_dir}}"
|
|
|