zephyr/subsys/net/lib/sockets/CMakeLists.txt

18 lines
524 B
CMake

zephyr_include_directories(.)
if(NOT CONFIG_NET_SOCKETS_OFFLOAD)
zephyr_sources(
getaddrinfo.c
sockets.c
sockets_select.c
sockets_misc.c
)
zephyr_sources_ifdef(CONFIG_NET_SOCKETS_SOCKOPT_TLS sockets_tls.c)
zephyr_sources_ifdef(CONFIG_NET_SOCKETS_PACKET sockets_packet.c)
zephyr_sources_ifdef(CONFIG_NET_SOCKETS_CAN sockets_can.c)
endif()
zephyr_sources_ifdef(CONFIG_NET_SOCKETS_OFFLOAD socket_offload.c)
zephyr_link_interface_ifdef(CONFIG_MBEDTLS mbedTLS)
zephyr_link_libraries_ifdef(CONFIG_MBEDTLS mbedTLS)