mirror of
https://github.com/espressif/ESP8266_RTOS_SDK.git
synced 2025-05-31 15:41:02 +08:00
22 lines
594 B
CMake
22 lines
594 B
CMake
set(srcs esp_tls.c)
|
|
if(CONFIG_ESP_TLS_USING_MBEDTLS)
|
|
list(APPEND srcs
|
|
"esp_tls_mbedtls.c")
|
|
endif()
|
|
|
|
if(CONFIG_ESP_TLS_USING_WOLFSSL)
|
|
list(APPEND srcs
|
|
"esp_tls_wolfssl.c")
|
|
endif()
|
|
|
|
idf_component_register(SRCS "${srcs}"
|
|
INCLUDE_DIRS "."
|
|
PRIV_INCLUDE_DIRS "private_include"
|
|
REQUIRES mbedtls
|
|
PRIV_REQUIRES lwip http_parser)
|
|
|
|
if(CONFIG_ESP_TLS_USING_WOLFSSL)
|
|
idf_component_get_property(wolfssl esp-wolfssl COMPONENT_LIB)
|
|
target_link_libraries(${COMPONENT_LIB} PUBLIC ${wolfssl})
|
|
endif()
|