llvm-project/libc/src/sys/socket/CMakeLists.txt
Michael Jones f6b4c34d4f
[libc] Add functions to send/recv messages (#106467)
This patch adds the necessary functions to send and receive messages
over a socket. Those functions are: recv, recvfrom, recvmsg, send,
sendto, sendmsg, and socketpair for testing.
2024-09-19 14:43:00 -07:00

60 lines
803 B
CMake

if(EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/${LIBC_TARGET_OS})
add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/${LIBC_TARGET_OS})
endif()
add_entrypoint_object(
socket
ALIAS
DEPENDS
.${LIBC_TARGET_OS}.socket
)
add_entrypoint_object(
socketpair
ALIAS
DEPENDS
.${LIBC_TARGET_OS}.socketpair
)
add_entrypoint_object(
send
ALIAS
DEPENDS
.${LIBC_TARGET_OS}.send
)
add_entrypoint_object(
sendto
ALIAS
DEPENDS
.${LIBC_TARGET_OS}.sendto
)
add_entrypoint_object(
sendmsg
ALIAS
DEPENDS
.${LIBC_TARGET_OS}.sendmsg
)
add_entrypoint_object(
recv
ALIAS
DEPENDS
.${LIBC_TARGET_OS}.recv
)
add_entrypoint_object(
recvfrom
ALIAS
DEPENDS
.${LIBC_TARGET_OS}.recvfrom
)
add_entrypoint_object(
recvmsg
ALIAS
DEPENDS
.${LIBC_TARGET_OS}.recvmsg
)