blob: b58ec9c800b99715dbc4f969aedff6a78c35d5c3 [file]
# Copyright (c) 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.
import("//build_overrides/build.gni")
import("//build_overrides/chip.gni")
import("//build_overrides/pigweed.gni")
import("${chip_root}/src/crypto/crypto.gni")
source_set("posix") {
public_deps = [
"$dir_pw_unit_test",
"$dir_pw_unit_test:googletest_style_event_handler",
"$dir_pw_unit_test:simple_printing_event_handler",
"${chip_root}/src/lib/support",
"${chip_root}/src/lib/support:arg_parser",
]
# unit_test_main.cpp reads CHIP_CRYPTO_PSA (from CryptoBuildConfig.h) and, for
# the PSA backend, calls psa_crypto_init() once so the whole suite is ready.
deps = [ "${chip_root}/src/crypto:crypto_buildconfig" ]
if (chip_crypto == "psa") {
deps += [ "${chip_root}/third_party/mbedtls" ]
}
sources = [ "unit_test_main.cpp" ]
}