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

Side by Side Diff: tools/gn/example/build/BUILDCONFIG.gn

Issue 774353003: gn format // (the rest) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase net Created 6 years 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
« no previous file with comments | « tools/gn/example/BUILD.gn ('k') | tools/gn/example/build/toolchain/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 2014 The Chromium Authors. All rights reserved. 1 # Copyright 2014 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 # All binary targets will get this list of configs by default. 5 # All binary targets will get this list of configs by default.
6 _shared_binary_target_configs = [ 6 _shared_binary_target_configs = [ "//build:compiler_defaults" ]
7 "//build:compiler_defaults",
8 ]
9 7
10 # Apply that default list to the binary target types. 8 # Apply that default list to the binary target types.
11 set_defaults("executable") { 9 set_defaults("executable") {
12 configs = _shared_binary_target_configs 10 configs = _shared_binary_target_configs
11
13 # Executables get this additional configuration. 12 # Executables get this additional configuration.
14 configs += [ "//build:executable_ldconfig" ] 13 configs += [ "//build:executable_ldconfig" ]
15 } 14 }
16 set_defaults("static_library") { 15 set_defaults("static_library") {
17 configs = _shared_binary_target_configs 16 configs = _shared_binary_target_configs
18 } 17 }
19 set_defaults("shared_library") { 18 set_defaults("shared_library") {
20 configs = _shared_binary_target_configs 19 configs = _shared_binary_target_configs
21 } 20 }
22 set_defaults("source_set") { 21 set_defaults("source_set") {
23 configs = _shared_binary_target_configs 22 configs = _shared_binary_target_configs
24 } 23 }
25 24
26 set_default_toolchain("//build/toolchain:gcc") 25 set_default_toolchain("//build/toolchain:gcc")
OLDNEW
« no previous file with comments | « tools/gn/example/BUILD.gn ('k') | tools/gn/example/build/toolchain/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698