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 17 matching lines...) Expand all Loading... |
28 # Make these apply to all tools below. | 28 # Make these apply to all tools below. |
29 lib_prefix = "" | 29 lib_prefix = "" |
30 lib_dir_prefix="/LIBPATH:" | 30 lib_dir_prefix="/LIBPATH:" |
31 | 31 |
32 cc_command = "ninja -t msvc -e environment.x86 -- cl.exe /nologo /showIncludes
/FC @\$out.rsp /c \$in /Fo\$out /Fd\$pdbname" | 32 cc_command = "ninja -t msvc -e environment.x86 -- cl.exe /nologo /showIncludes
/FC @\$out.rsp /c \$in /Fo\$out /Fd\$pdbname" |
33 tool("cc") { | 33 tool("cc") { |
34 command = cc_command | 34 command = cc_command |
35 description = "CC \$out" | 35 description = "CC \$out" |
36 rspfile = "\$out.rsp" | 36 rspfile = "\$out.rsp" |
37 rspfile_content = "\$defines \$includes \$cflags \$cflags_c" | 37 rspfile_content = "\$defines \$includes \$cflags \$cflags_c" |
38 deps = "msvc" | 38 depsformat = "msvc" |
39 } | 39 } |
40 tool("cxx") { | 40 tool("cxx") { |
41 command = cc_command # Same as above | 41 command = cc_command # Same as above |
42 description = "CXX \$out" | 42 description = "CXX \$out" |
43 rspfile = "\$out.rsp" | 43 rspfile = "\$out.rsp" |
44 rspfile_content = "\$defines \$includes \$cflags \$cflags_cc" | 44 rspfile_content = "\$defines \$includes \$cflags \$cflags_cc" |
45 deps = "msvc" | 45 depsformat = "msvc" |
46 } | 46 } |
47 tool("rc") { | 47 tool("rc") { |
48 command = "$python_path gyp-win-tool rc-wrapper environment.x86 rc.exe \$def
ines \$includes \$rcflags /fo\$out \$in" | 48 command = "$python_path gyp-win-tool rc-wrapper environment.x86 rc.exe \$def
ines \$includes \$rcflags /fo\$out \$in" |
49 description = "RC \$in" | 49 description = "RC \$in" |
50 } | 50 } |
51 tool("asm") { | 51 tool("asm") { |
52 command = "$python_path gyp-win-tool asm-wrapper environment.x86 ml.exe \$de
fines \$includes /c /Fo \$out \$in" | 52 command = "$python_path gyp-win-tool asm-wrapper environment.x86 ml.exe \$de
fines \$includes /c /Fo \$out \$in" |
53 description = "ASM \$in" | 53 description = "ASM \$in" |
54 } | 54 } |
55 tool("alink") { | 55 tool("alink") { |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
87 # Make these apply to all tools below. | 87 # Make these apply to all tools below. |
88 lib_prefix = "" | 88 lib_prefix = "" |
89 lib_dir_prefix="/LIBPATH:" | 89 lib_dir_prefix="/LIBPATH:" |
90 | 90 |
91 cc_command = "ninja -t msvc -e environment.x64 -- cl.exe /nologo /showIncludes
/FC @\$out.rsp /c \$in /Fo\$out /Fd\$pdbname" | 91 cc_command = "ninja -t msvc -e environment.x64 -- cl.exe /nologo /showIncludes
/FC @\$out.rsp /c \$in /Fo\$out /Fd\$pdbname" |
92 tool("cc") { | 92 tool("cc") { |
93 command = cc_command | 93 command = cc_command |
94 description = "CC \$out" | 94 description = "CC \$out" |
95 rspfile = "\$out.rsp" | 95 rspfile = "\$out.rsp" |
96 rspfile_content = "\$defines \$includes \$cflags \$cflags_c" | 96 rspfile_content = "\$defines \$includes \$cflags \$cflags_c" |
97 deps = "msvc" | 97 depsformat = "msvc" |
98 } | 98 } |
99 tool("cxx") { | 99 tool("cxx") { |
100 command = cc_command # Same as above | 100 command = cc_command # Same as above |
101 description = "CXX \$out" | 101 description = "CXX \$out" |
102 rspfile = "\$out.rsp" | 102 rspfile = "\$out.rsp" |
103 rspfile_content = "\$defines \$includes \$cflags \$cflags_cc" | 103 rspfile_content = "\$defines \$includes \$cflags \$cflags_cc" |
104 deps = "msvc" | 104 depsformat = "msvc" |
105 } | 105 } |
106 tool("rc") { | 106 tool("rc") { |
107 command = "$python_path gyp-win-tool rc-wrapper environment.x64 rc.exe \$def
ines \$includes \$rcflags /fo\$out \$in" | 107 command = "$python_path gyp-win-tool rc-wrapper environment.x64 rc.exe \$def
ines \$includes \$rcflags /fo\$out \$in" |
108 description = "RC \$in" | 108 description = "RC \$in" |
109 } | 109 } |
110 tool("asm") { | 110 tool("asm") { |
111 command = "$python_path gyp-win-tool asm-wrapper environment.x64 ml.exe \$de
fines \$includes /c /Fo \$out \$in" | 111 command = "$python_path gyp-win-tool asm-wrapper environment.x64 ml.exe \$de
fines \$includes /c /Fo \$out \$in" |
112 description = "ASM \$in" | 112 description = "ASM \$in" |
113 } | 113 } |
114 tool("alink") { | 114 tool("alink") { |
(...skipping 26 matching lines...) Expand all Loading... |
141 | 141 |
142 # When invoking this toolchain not as the default one, these args will be | 142 # When invoking this toolchain not as the default one, these args will be |
143 # passed to the build. They are ignored when this is the default toolchain. | 143 # passed to the build. They are ignored when this is the default toolchain. |
144 toolchain_args() { | 144 toolchain_args() { |
145 cpu_arch = "x64" | 145 cpu_arch = "x64" |
146 # Normally the build config resets the CPU architecture to 32-bits. Setting | 146 # Normally the build config resets the CPU architecture to 32-bits. Setting |
147 # this flag overrides that behavior. | 147 # this flag overrides that behavior. |
148 force_win64 = true | 148 force_win64 = true |
149 } | 149 } |
150 } | 150 } |
OLD | NEW |