From 0f7401b866636becab828cc2fc9e6fa210db4c66 Mon Sep 17 00:00:00 2001 From: Abtin Keshavarzian Date: Thu, 18 Mar 2021 08:35:28 -0700 Subject: [PATCH] [build] add config for SRP client feature under BUILD.gn (#6308) --- etc/gn/openthread.gni | 3 +++ src/core/BUILD.gn | 4 ++++ 2 files changed, 7 insertions(+) diff --git a/etc/gn/openthread.gni b/etc/gn/openthread.gni index 2737adc63..ecdb886e9 100644 --- a/etc/gn/openthread.gni +++ b/etc/gn/openthread.gni @@ -198,6 +198,9 @@ if (openthread_enable_core_config_args) { # Enable SNTP Client support openthread_config_sntp_client_enable = false + # Enable SRP Client support + openthread_config_srp_client_enable = false + # Enable SRP Server support openthread_config_srp_server_enable = false diff --git a/src/core/BUILD.gn b/src/core/BUILD.gn index 6b86393aa..b6ec2734c 100644 --- a/src/core/BUILD.gn +++ b/src/core/BUILD.gn @@ -228,6 +228,10 @@ if (openthread_enable_core_config_args) { defines += [ "OPENTHREAD_CONFIG_SNTP_CLIENT_ENABLE=1" ] } + if (openthread_config_srp_client_enable) { + defines += [ "OPENTHREAD_CONFIG_SRP_CLIENT_ENABLE=1" ] + } + if (openthread_config_srp_server_enable) { defines += [ "OPENTHREAD_CONFIG_SRP_SERVER_ENABLE=1" ] }