Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(106)

Side by Side Diff: tools/gn/secondary/build/config/BUILDCONFIG.gn

Issue 26267003: Add the concept of a source set to GN. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « tools/gn/output_file.h ('k') | tools/gn/secondary/build/toolchain/nacl/BUILD.gn » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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 = "static_library" 165 component_mode = "source_set"
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 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
259 259
260 set_defaults("shared_library") { 260 set_defaults("shared_library") {
261 configs = native_compiler_configs 261 configs = native_compiler_configs
262 if (is_win) { 262 if (is_win) {
263 configs += windows_linker_configs 263 configs += windows_linker_configs
264 } else if (is_mac) { 264 } else if (is_mac) {
265 configs += "//build/config/mac:mac_dynamic_flags" 265 configs += "//build/config/mac:mac_dynamic_flags"
266 } 266 }
267 } 267 }
268 268
269 set_defaults("source_set") {
270 configs = native_compiler_configs
271 }
272
269 # ============================================================================== 273 # ==============================================================================
270 # TOOLCHAIN SETUP 274 # TOOLCHAIN SETUP
271 # ============================================================================== 275 # ==============================================================================
272 276
273 if (is_win) { 277 if (is_win) {
274 set_default_toolchain("//build/toolchain/win:32") 278 set_default_toolchain("//build/toolchain/win:32")
275 } else if (is_linux) { 279 } else if (is_linux) {
276 set_default_toolchain("//build/toolchain/linux:gcc") 280 set_default_toolchain("//build/toolchain/linux:gcc")
277 } else if (is_mac) { 281 } else if (is_mac) {
278 set_default_toolchain("//build/toolchain/mac:clang") 282 set_default_toolchain("//build/toolchain/mac:clang")
279 } 283 }
OLDNEW
« no previous file with comments | « tools/gn/output_file.h ('k') | tools/gn/secondary/build/toolchain/nacl/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698