[gn] add build option for TCP (#12134)

This commit adds an option to allow disable building TCP.
This commit is contained in:
Yakun Xu
2025-11-12 08:53:16 +01:00
committed by GitHub
parent 02295b035f
commit f2462b7401
2 changed files with 5 additions and 0 deletions
+3
View File
@@ -213,6 +213,9 @@ if (openthread_enable_core_config_args) {
# Enable SRP Server support
openthread_config_srp_server_enable = false
# Enable support for TCP
openthread_config_tcp_enable = true
# Enable ping sender support
openthread_config_ping_sender = false
+2
View File
@@ -247,6 +247,8 @@ if (openthread_enable_core_config_args) {
defines += [ "OPENTHREAD_CONFIG_SRP_SERVER_ENABLE=1" ]
}
defines += [ "OPENTHREAD_CONFIG_TCP_ENABLE=${openthread_config_tcp_enable}" ]
if (openthread_config_ping_sender) {
defines += [ "OPENTHREAD_CONFIG_PING_SENDER_ENABLE=1" ]
}