| 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_official_build = false | 9 is_official_build = false |
| 10 is_component_build = false | 10 is_component_build = false |
| (...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 140 configs = default_configs | 140 configs = default_configs |
| 141 } | 141 } |
| 142 | 142 |
| 143 set_defaults("component") { | 143 set_defaults("component") { |
| 144 configs = default_configs | 144 configs = default_configs |
| 145 if (!is_component_build) { | 145 if (!is_component_build) { |
| 146 complete_static_lib = true | 146 complete_static_lib = true |
| 147 } | 147 } |
| 148 } | 148 } |
| 149 | 149 |
| 150 # For now, we support GCC-like toolchains, including Clang. | 150 if (is_win) { |
| 151 set_default_toolchain("//gn:gcc_like") | 151 # Windows tool chain |
| 152 set_default_toolchain("//gn:msvc") |
| 153 } else { |
| 154 # GCC-like toolchains, including Clang. |
| 155 set_default_toolchain("//gn:gcc_like") |
| 156 } |
| OLD | NEW |