zephyr/subsys/net/lib/sockets/CMakeLists.txt
Jukka Rissanen eff5d02872 net: sockets: Create a socket service API
The socket service provides a similar functionality as what
initd provides in Linux. It listens user registered sockets
for any activity and then launches a k_work for it. This way
each application does not need to create a thread to listen
a blocking socket.

Signed-off-by: Jukka Rissanen <jukka.rissanen@nordicsemi.no>
2024-01-16 10:00:45 +01:00

43 lines
1.3 KiB
CMake

# SPDX-License-Identifier: Apache-2.0
zephyr_syscall_header(
${ZEPHYR_BASE}/include/zephyr/net/socket.h
${ZEPHYR_BASE}/include/zephyr/net/socket_select.h
)
zephyr_library_include_directories(.)
zephyr_library_sources(
getaddrinfo.c
sockets.c
sockets_select.c
)
if(NOT CONFIG_NET_SOCKETS_OFFLOAD)
zephyr_library_sources(
getnameinfo.c
sockets_misc.c
)
endif()
zephyr_library_sources_ifdef(CONFIG_NET_SOCKETS_CAN sockets_can.c)
zephyr_library_sources_ifdef(CONFIG_NET_SOCKETS_PACKET sockets_packet.c)
zephyr_library_sources_ifdef(CONFIG_NET_SOCKETS_SOCKOPT_TLS sockets_tls.c)
zephyr_library_sources_ifdef(CONFIG_NET_SOCKETS_OFFLOAD socket_offload.c)
zephyr_library_sources_ifdef(CONFIG_NET_SOCKETS_OFFLOAD_DISPATCHER socket_dispatcher.c)
zephyr_library_sources_ifdef(CONFIG_NET_SOCKETS_OBJ_CORE socket_obj_core.c)
zephyr_library_sources_ifdef(CONFIG_NET_SOCKETS_SERVICE sockets_service.c)
if(CONFIG_NET_SOCKETS_NET_MGMT)
zephyr_library_sources(sockets_net_mgmt.c)
zephyr_library_include_directories(${ZEPHYR_BASE}/subsys/net/ip)
endif()
if(CONFIG_SOCKS)
zephyr_library_include_directories(${ZEPHYR_BASE}/subsys/net/lib/socks)
endif()
zephyr_library_sources_ifdef(CONFIG_NET_SOCKETPAIR socketpair.c)
zephyr_library_link_libraries_ifdef(CONFIG_MBEDTLS mbedTLS)