OLD | NEW |
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") |
OLD | NEW |