diff --git a/examples/platform/efr32/BUILD.gn b/examples/platform/efr32/BUILD.gn index 2a1aa8f80f34b3..fa6b7a8fd14dc3 100644 --- a/examples/platform/efr32/BUILD.gn +++ b/examples/platform/efr32/BUILD.gn @@ -41,18 +41,20 @@ config("chip_examples_project_config") { } source_set("openthread_core_config_efr32_chip_examples") { - sources = [ "project_include/OpenThreadConfig.h" ] + if (chip_enable_openthread) { + sources = [ "project_include/OpenThreadConfig.h" ] - public_deps = [ "${efr32_sdk_build_root}:efr32_sdk" ] + public_deps = [ "${efr32_sdk_build_root}:efr32_sdk" ] - if (chip_use_ot_lib == true) { - public_deps += - [ "${chip_root}/third_party/silabs:openthread_core_config_efr32" ] - } else { - public_deps += [ "${chip_root}/third_party/openthread/platforms/efr32:openthread_core_config_efr32" ] - } + if (chip_use_ot_lib == true) { + public_deps += + [ "${chip_root}/third_party/silabs:openthread_core_config_efr32" ] + } else { + public_deps += [ "${chip_root}/third_party/openthread/platforms/efr32:openthread_core_config_efr32" ] + } - public_configs = [ ":chip_examples_project_config" ] + public_configs = [ ":chip_examples_project_config" ] + } } source_set("efr-matter-shell") {