| # Copyright (c) 2020 Project CHIP Authors |
| # |
| # Licensed under the Apache License, Version 2.0 (the "License"); |
| # you may not use this file except in compliance with the License. |
| # You may obtain a copy of the License at |
| # |
| # http://www.apache.org/licenses/LICENSE-2.0 |
| # |
| # Unless required by applicable law or agreed to in writing, software |
| # distributed under the License is distributed on an "AS IS" BASIS, |
| # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| # See the License for the specific language governing permissions and |
| # limitations under the License. |
| |
| import("//build_overrides/chip.gni") |
| |
| import("//build/config/compiler/compiler.gni") |
| import("//build/config/custom_toolchain.gni") |
| |
| declare_args() { |
| # Default configs for abi. |
| default_configs_abi = [ "//build/config/compiler:abi_default" ] |
| |
| # Default configs for debugging. |
| default_configs_debug = [ "//build/config/compiler:debug_default" ] |
| |
| # Default configs for specs. |
| default_configs_specs = [ "//build/config/compiler:specs_default" ] |
| |
| # Default configs for optimization. |
| default_configs_optimize = [ "//build/config/compiler:optimize_default" ] |
| |
| # Default configs for language. |
| default_configs_std = [ "//build/config/compiler:std_default" ] |
| |
| # Defaults configs for symbols. |
| default_configs_symbols = [ "//build/config/compiler:symbols_default" ] |
| |
| # Defaults configs for aliasing. |
| default_configs_aliasing = [ "//build/config/compiler:aliasing_default" ] |
| |
| # Defaults configs for size. |
| default_configs_size = [ "//build/config/compiler:size_default" ] |
| |
| # Defaults configs for exceptions. |
| default_configs_exceptions = [ "//build/config/compiler:exceptions_default" ] |
| |
| # Defaults configs for rtti. |
| default_configs_rtti = [ "//build/config/compiler:rtti_default" ] |
| |
| # Defaults configs for pic. |
| default_configs_pic = [ "//build/config/compiler:pic_default" ] |
| |
| # Defaults configs for pie. |
| default_configs_pie = [ "//build/config/compiler:pie_default" ] |
| |
| # Defaults configs for warnings. |
| default_configs_warnings = [ "//build/config/compiler:warnings_default" ] |
| |
| # Defaults cosmetic configs. |
| default_configs_cosmetic = [ "//build/config/compiler:cosmetic_default" ] |
| |
| # Default configs for runtime library. |
| default_configs_runtime = [ "//build/config/compiler:runtime_default" ] |
| |
| # Defaults sanitizer configs. |
| default_configs_sanitize = [ "//build/config/compiler:sanitize_default" ] |
| |
| # Defaults fuzzing configs. |
| default_configs_fuzzing = [ "//build/config/compiler:fuzzing_default" ] |
| |
| # Defaults target-specific configs. |
| default_configs_target = [ "//build/config/compiler:target_default" ] |
| |
| # Extra default configs. |
| default_configs_extra = [] |
| } |
| |
| default_configs = [] |
| default_configs += default_configs_abi |
| default_configs += default_configs_debug |
| default_configs += default_configs_optimize |
| default_configs += default_configs_std |
| default_configs += default_configs_symbols |
| default_configs += default_configs_size |
| default_configs += default_configs_specs |
| default_configs += default_configs_exceptions |
| default_configs += default_configs_pic |
| default_configs += default_configs_rtti |
| default_configs += default_configs_warnings |
| default_configs += default_configs_cosmetic |
| default_configs += default_configs_runtime |
| default_configs += default_configs_aliasing |
| default_configs += default_configs_sanitize |
| default_configs += default_configs_fuzzing |
| default_configs += default_configs_target |
| default_configs += default_configs_extra |
| |
| executable_default_configs = [] |
| executable_default_configs += default_configs_pie |