OLD | NEW |
1 # Copyright 2016 Google Inc. | 1 # Copyright 2016 Google Inc. |
2 # | 2 # |
3 # Use of this source code is governed by a BSD-style license that can be | 3 # Use of this source code is governed by a BSD-style license that can be |
4 # found in the LICENSE file. | 4 # found in the LICENSE file. |
5 | 5 |
6 # It's best to keep the names and defaults of is_foo flags consistent with Chrom
e. | 6 # It's best to keep the names and defaults of is_foo flags consistent with Chrom
e. |
7 | 7 |
8 declare_args() { | 8 declare_args() { |
9 is_debug = true | 9 is_debug = true |
10 is_component_build = false | 10 is_component_build = false |
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
132 configs = default_configs | 132 configs = default_configs |
133 } | 133 } |
134 | 134 |
135 set_defaults("component") { | 135 set_defaults("component") { |
136 configs = default_configs | 136 configs = default_configs |
137 if (!is_component_build) { | 137 if (!is_component_build) { |
138 complete_static_lib = true | 138 complete_static_lib = true |
139 } | 139 } |
140 } | 140 } |
141 | 141 |
142 # For now, we support GCC-like toolchains, including Clang. | 142 if (is_win) { |
143 set_default_toolchain("//gn:gcc_like") | 143 # Windows tool chain |
| 144 set_default_toolchain("//gn:msvc") |
| 145 } else { |
| 146 # GCC-like toolchains, including Clang. |
| 147 set_default_toolchain("//gn:gcc_like") |
| 148 } |
OLD | NEW |