mirror of
https://github.com/espressif/openthread.git
synced 2026-08-07 19:27:46 +00:00
[build] add config for SRP client feature under BUILD.gn (#6308)
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
@@ -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" ]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user