1 # 2 # Copyright (C) 2015 Google, Inc. 3 # 4 # Licensed under the Apache License, Version 2.0 (the "License"); 5 # you may not use this file except in compliance with the License. 6 # You may obtain a copy of the License at: 7 # 8 # http://www.apache.org/licenses/LICENSE-2.0 9 # 10 # Unless required by applicable law or agreed to in writing, software 11 # distributed under the License is distributed on an "AS IS" BASIS, 12 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 # See the License for the specific language governing permissions and 14 # limitations under the License. 15 # 16 17 set_default_toolchain("//build/toolchain/clang") 18 toolchain_config="//build/toolchain/clang:clang_config" 19 20 set_defaults("executable") { 21 configs = [ 22 "//build:linux", 23 "//build:gc", 24 "//build:default_include_dirs", 25 toolchain_config, 26 ] 27 } 28 29 set_defaults("shared_library") { 30 configs = [ 31 "//build:linux", 32 "//build:gc", 33 "//build:default_include_dirs", 34 toolchain_config, 35 ] 36 } 37 38 set_defaults("source_set") { 39 configs = [ 40 "//build:linux", 41 "//build:gc", 42 "//build:default_include_dirs", 43 toolchain_config, 44 ] 45 } 46 47 set_defaults("static_library") { 48 configs = [ 49 "//build:linux", 50 "//build:gc", 51 "//build:default_include_dirs", 52 toolchain_config, 53 ] 54 } 55