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 # ============================================================================= | 5 # ============================================================================= |
6 # BUILD FLAGS | 6 # BUILD FLAGS |
7 # ============================================================================= | 7 # ============================================================================= |
8 # | 8 # |
9 # This block lists input arguments to the build, along with their default | 9 # This block lists input arguments to the build, along with their default |
10 # values. GN requires listing them explicitly so it can validate input and have | 10 # values. GN requires listing them explicitly so it can validate input and have |
(...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
155 # This is the actual set. | 155 # This is the actual set. |
156 set_sources_assignment_filter(sources_assignment_filter) | 156 set_sources_assignment_filter(sources_assignment_filter) |
157 | 157 |
158 # ============================================================================= | 158 # ============================================================================= |
159 # BUILD OPTIONS | 159 # BUILD OPTIONS |
160 # ============================================================================= | 160 # ============================================================================= |
161 | 161 |
162 if (is_component_build) { | 162 if (is_component_build) { |
163 component_mode = "shared_library" | 163 component_mode = "shared_library" |
164 } else { | 164 } else { |
165 component_mode = "source_set" | 165 component_mode = "static_library" |
166 } | 166 } |
167 | 167 |
168 toolkit_uses_gtk = is_linux | 168 toolkit_uses_gtk = is_linux |
169 | 169 |
170 # ============================================================================= | 170 # ============================================================================= |
171 # TARGET DEFAULTS | 171 # TARGET DEFAULTS |
172 # ============================================================================= | 172 # ============================================================================= |
173 # | 173 # |
174 # Set up the default configuration for every build target of the given type. | 174 # Set up the default configuration for every build target of the given type. |
175 # The values configured here will be automatically set on the scope of the | 175 # The values configured here will be automatically set on the scope of the |
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
274 # TOOLCHAIN SETUP | 274 # TOOLCHAIN SETUP |
275 # ============================================================================== | 275 # ============================================================================== |
276 | 276 |
277 if (is_win) { | 277 if (is_win) { |
278 set_default_toolchain("//build/toolchain/win:32") | 278 set_default_toolchain("//build/toolchain/win:32") |
279 } else if (is_linux) { | 279 } else if (is_linux) { |
280 set_default_toolchain("//build/toolchain/linux:gcc") | 280 set_default_toolchain("//build/toolchain/linux:gcc") |
281 } else if (is_mac) { | 281 } else if (is_mac) { |
282 set_default_toolchain("//build/toolchain/mac:clang") | 282 set_default_toolchain("//build/toolchain/mac:clang") |
283 } | 283 } |
OLD | NEW |