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