2021-04-16 17:23:18 +08:00
|
|
|
set(srcs
|
|
|
|
"transport.c"
|
|
|
|
"transport_ssl.c"
|
2022-04-21 12:41:58 -03:00
|
|
|
"transport_internal.c")
|
2021-04-16 17:23:18 +08:00
|
|
|
|
2022-10-05 15:20:39 +02:00
|
|
|
if(CONFIG_LWIP_IPV4)
|
|
|
|
list(APPEND srcs
|
|
|
|
"transport_socks_proxy.c")
|
|
|
|
endif()
|
|
|
|
|
2021-04-16 17:23:18 +08:00
|
|
|
if(CONFIG_WS_TRANSPORT)
|
|
|
|
list(APPEND srcs
|
|
|
|
"transport_ws.c")
|
|
|
|
endif()
|
|
|
|
|
2022-11-08 14:24:17 +05:30
|
|
|
set(req esp-tls)
|
|
|
|
if(NOT ${IDF_TARGET} STREQUAL "linux")
|
2022-10-05 15:20:39 +02:00
|
|
|
list(APPEND req lwip esp_timer)
|
2022-11-08 14:24:17 +05:30
|
|
|
endif()
|
|
|
|
|
2021-04-16 17:23:18 +08:00
|
|
|
idf_component_register(SRCS "${srcs}"
|
2019-04-16 11:58:38 +02:00
|
|
|
INCLUDE_DIRS "include"
|
2019-08-06 11:00:37 +08:00
|
|
|
PRIV_INCLUDE_DIRS "private_include"
|
2022-11-08 14:24:17 +05:30
|
|
|
REQUIRES ${req})
|