1set(srcs esp_tls.c esp-tls-crypto/esp_tls_crypto.c esp_tls_error_capture.c) 2if(CONFIG_ESP_TLS_USING_MBEDTLS) 3 list(APPEND srcs 4 "esp_tls_mbedtls.c") 5endif() 6 7if(CONFIG_ESP_TLS_USING_WOLFSSL) 8 list(APPEND srcs 9 "esp_tls_wolfssl.c") 10endif() 11 12idf_component_register(SRCS "${srcs}" 13 INCLUDE_DIRS . esp-tls-crypto 14 PRIV_INCLUDE_DIRS "private_include" 15 REQUIRES mbedtls 16 PRIV_REQUIRES lwip nghttp) 17 18if(CONFIG_ESP_TLS_USING_WOLFSSL) 19 idf_component_get_property(wolfssl esp-wolfssl COMPONENT_LIB) 20 target_link_libraries(${COMPONENT_LIB} PUBLIC ${wolfssl}) 21endif() 22 23if(CONFIG_ESP_TLS_USE_SE) 24 idf_component_get_property(cryptoauthlib esp-cryptoauthlib COMPONENT_LIB) 25 target_link_libraries(${COMPONENT_LIB} PUBLIC ${cryptoauthlib}) 26endif() 27