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 |
11 # Setup the Visual Studio state. | 11 # Setup the Visual Studio state. |
12 # | 12 # |
13 # Its arguments are the VS path and the compiler wrapper tool. It will write | 13 # Its arguments are the VS path and the compiler wrapper tool. It will write |
14 # "environment.x86" and "environment.x64" to the build directory and return a | 14 # "environment.x86" and "environment.x64" to the build directory and return a |
15 # list to us. | 15 # list to us. |
16 gyp_win_tool_path = rebase_path("//tools/gyp/pylib/gyp/win_tool.py", | 16 gyp_win_tool_path = rebase_path("//tools/gyp/pylib/gyp/win_tool.py", |
17 root_build_dir) | 17 root_build_dir) |
18 exec_script("setup_toolchain.py", | 18 exec_script("setup_toolchain.py", |
19 [ visual_studio_path, gyp_win_tool_path, windows_sdk_path ], | 19 [ visual_studio_path, gyp_win_tool_path, windows_sdk_path ]) |
20 "string") | |
21 | 20 |
22 stamp_command = "$python_path gyp-win-tool stamp \$out" | 21 stamp_command = "$python_path gyp-win-tool stamp \$out" |
23 copy_command = "$python_path gyp-win-tool recursive-mirror \$in \$out" | 22 copy_command = "$python_path gyp-win-tool recursive-mirror \$in \$out" |
24 | 23 |
25 # MSVC can't share PDB files between compilers compiling C and C++ files, so | 24 # MSVC can't share PDB files between compilers compiling C and C++ files, so |
26 # we construct different names for each type. | 25 # we construct different names for each type. |
27 c_pdb_suffix = " /Fd\${target_out_dir}/\${target_name}_c.pdb" | 26 c_pdb_suffix = " /Fd\${target_out_dir}/\${target_name}_c.pdb" |
28 cc_pdb_suffix = " /Fd\${target_out_dir}/\${target_name}_cc.pdb" | 27 cc_pdb_suffix = " /Fd\${target_out_dir}/\${target_name}_cc.pdb" |
29 | 28 |
30 # 32-bit toolchain ------------------------------------------------------------- | 29 # 32-bit toolchain ------------------------------------------------------------- |
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
146 | 145 |
147 # When invoking this toolchain not as the default one, these args will be | 146 # When invoking this toolchain not as the default one, these args will be |
148 # passed to the build. They are ignored when this is the default toolchain. | 147 # passed to the build. They are ignored when this is the default toolchain. |
149 toolchain_args() { | 148 toolchain_args() { |
150 cpu_arch = "x64" | 149 cpu_arch = "x64" |
151 # Normally the build config resets the CPU architecture to 32-bits. Setting | 150 # Normally the build config resets the CPU architecture to 32-bits. Setting |
152 # this flag overrides that behavior. | 151 # this flag overrides that behavior. |
153 force_win64 = true | 152 force_win64 = true |
154 } | 153 } |
155 } | 154 } |
OLD | NEW |