From 9c631dfb9347b359cafd34ac66e630b3630243d8 Mon Sep 17 00:00:00 2001 From: Boris Zbarsky Date: Thu, 9 Feb 2023 12:29:36 -0500 Subject: [PATCH] Default to boringssl when building on darwin. (#24929) This gets rid of the openssl dependency. --- src/crypto/BUILD.gn | 2 ++ src/tools/chip-cert/BUILD.gn | 4 +++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/crypto/BUILD.gn b/src/crypto/BUILD.gn index 8c8b6961ace5d1..bcf20280c0551e 100644 --- a/src/crypto/BUILD.gn +++ b/src/crypto/BUILD.gn @@ -25,6 +25,8 @@ if (chip_crypto == "") { current_os == "zephyr" || current_os == "mbed" || current_os == "webos" || current_os == "cmsis-rtos") { chip_crypto = "mbedtls" + } else if (current_os == "mac" || current_os == "ios") { + chip_crypto = "boringssl" } else { chip_crypto = "openssl" } diff --git a/src/tools/chip-cert/BUILD.gn b/src/tools/chip-cert/BUILD.gn index 0663e33c8ef7c6..d126d5ae6b2a10 100644 --- a/src/tools/chip-cert/BUILD.gn +++ b/src/tools/chip-cert/BUILD.gn @@ -37,7 +37,9 @@ executable("chip-cert") { "chip-cert.h", ] - public_configs = [ "${chip_root}/src/crypto:openssl_config" ] + if (chip_crypto == "openssl") { + public_configs = [ "${chip_root}/src/crypto:openssl_config" ] + } cflags = [ "-Wconversion" ]