[build] add config for SRP client feature under BUILD.gn (#6308)

This commit is contained in:
Abtin Keshavarzian
2021-03-18 08:35:28 -07:00
committed by GitHub
parent f38ec1ed8a
commit 0f7401b866
2 changed files with 7 additions and 0 deletions
+3
View File
@@ -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
+4
View File
@@ -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" ]
}