diff --git a/src/credentials/BUILD.gn b/src/credentials/BUILD.gn index 63b86083a524ec..62975f17ee78f6 100644 --- a/src/credentials/BUILD.gn +++ b/src/credentials/BUILD.gn @@ -108,10 +108,10 @@ static_library("credentials") { # is changed to generate it's own credentials instead of using Test credentials. # For some platforms test builds, which are bilding monolithic test library these files are not needed. import("${chip_root}/build/chip/tests.gni") - if (!(chip_build_tests && (chip_device_platform == "mbed" || - chip_device_platform == "openiotsdk" || - chip_device_platform == "nrfconnect" || - chip_device_platform == "esp32"))) { + if (chip_build_tests && !(chip_device_platform == "mbed" || + chip_device_platform == "openiotsdk" || + chip_device_platform == "nrfconnect" || + chip_device_platform == "esp32")) { sources += [ "tests/CHIPAttCert_test_vectors.cpp", "tests/CHIPAttCert_test_vectors.h",