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
3 # found in the LICENSE file.
5 # All binary targets will get this list of configs by default.
6 _shared_binary_target_configs = [ "//build:compiler_defaults" ]
8 # Apply that default list to the binary target types.
9 set_defaults("executable") {
10 configs = _shared_binary_target_configs
12 # Executables get this additional configuration.
13 configs += [ "//build:executable_ldconfig" ]
15 set_defaults("static_library") {
16 configs = _shared_binary_target_configs
18 set_defaults("shared_library") {
19 configs = _shared_binary_target_configs
21 set_defaults("source_set") {
22 configs = _shared_binary_target_configs
25 set_default_toolchain("//build/toolchain:gcc")