2024-10-08 21:27:11 +02:00
|
|
|
idf_component_register(SRCS "src/getnameinfo.c"
|
|
|
|
"src/ifaddrs.c"
|
|
|
|
"src/gai_strerror.c"
|
|
|
|
"src/socketpair.c"
|
2024-12-09 16:15:34 +01:00
|
|
|
"src/gethostname.c"
|
2024-10-08 21:27:11 +02:00
|
|
|
INCLUDE_DIRS "include"
|
|
|
|
PRIV_REQUIRES lwip esp_netif)
|
2024-12-16 18:07:57 +01:00
|
|
|
|
|
|
|
# To support declarations from standard headers in lwip component
|
|
|
|
# - socket pair from lwip/sockets.h
|
|
|
|
# - gai_strerror from lwip/netdb.h
|
|
|
|
# also need to make lwip depend on the sock_utils lib
|
|
|
|
idf_component_get_property(lwip lwip COMPONENT_LIB)
|
|
|
|
target_compile_definitions(${lwip} PUBLIC LWIP_SOCKET_HAS_SOCKETPAIR=1)
|
|
|
|
target_compile_definitions(${lwip} PUBLIC LWIP_NETDB_HAS_GAI_STRERROR=1)
|
|
|
|
target_link_libraries(${lwip} PUBLIC ${COMPONENT_LIB})
|