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 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
94 rspfile = "{{output}}.rsp" | 94 rspfile = "{{output}}.rsp" |
95 | 95 |
96 # The PDB name needs to be different between C and C++ compiled files. | 96 # The PDB name needs to be different between C and C++ compiled files. |
97 pdbname = "{{target_out_dir}}/{{target_output_name}}_cc.pdb" | 97 pdbname = "{{target_out_dir}}/{{target_output_name}}_cc.pdb" |
98 command = "ninja -t msvc -e $env -- $cl /nologo /showIncludes /FC @$rspfil
e /c {{source}} /Fo{{output}} /Fd$pdbname" | 98 command = "ninja -t msvc -e $env -- $cl /nologo /showIncludes /FC @$rspfil
e /c {{source}} /Fo{{output}} /Fd$pdbname" |
99 depsformat = "msvc" | 99 depsformat = "msvc" |
100 description = "CXX {{output}}" | 100 description = "CXX {{output}}" |
101 outputs = [ | 101 outputs = [ |
102 "{{source_out_dir}}/{{target_output_name}}.{{source_name_part}}.obj", | 102 "{{source_out_dir}}/{{target_output_name}}.{{source_name_part}}.obj", |
103 ] | 103 ] |
104 rspfile_content = "{{defines}} {{include_dirs}} {{cflags}} {{cflags_c}}" | 104 rspfile_content = "{{defines}} {{include_dirs}} {{cflags}} {{cflags_cc}}" |
105 } | 105 } |
106 | 106 |
107 tool("rc") { | 107 tool("rc") { |
108 command = "$python_path gyp-win-tool rc-wrapper $env rc.exe {{defines}} {{
include_dirs}} /fo{{output}} {{source}}" | 108 command = "$python_path gyp-win-tool rc-wrapper $env rc.exe {{defines}} {{
include_dirs}} /fo{{output}} {{source}}" |
109 outputs = [ | 109 outputs = [ |
110 "{{source_out_dir}}/{{target_output_name}}.{{source_name_part}}.res", | 110 "{{source_out_dir}}/{{target_output_name}}.{{source_name_part}}.res", |
111 ] | 111 ] |
112 description = "RC {{output}}" | 112 description = "RC {{output}}" |
113 } | 113 } |
114 | 114 |
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
217 } | 217 } |
218 } | 218 } |
219 | 219 |
220 if (current_cpu == "x64") { | 220 if (current_cpu == "x64") { |
221 msvc_toolchain("64") { | 221 msvc_toolchain("64") { |
222 environment = "environment.x64" | 222 environment = "environment.x64" |
223 | 223 |
224 current_cpu = "x64" | 224 current_cpu = "x64" |
225 } | 225 } |
226 } | 226 } |
OLD | NEW |