blob: d4b2643276c2b66a1feb3367b539d04769b32c0a [file]
# Copyright (c) 2020-2026 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.
assert(current_toolchain != "",
"Build settings cannot be evaluated without a toolchain." +
" Do not import this file from default_args / args.gni.")
import("//build_overrides/chip.gni")
import("${chip_root}/src/crypto/crypto.gni")
import("${chip_root}/src/platform/device.gni")
declare_args() {
# Build CHIP tools.
chip_build_tools = current_os != "freertos" && current_os != "android" &&
current_os != "zephyr" && chip_device_platform != "fake"
chip_can_build_cert_tool =
chip_crypto == "openssl" || chip_crypto == "boringssl"
}