mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
b2af4d9689
linux/lwip: Wrap some IO posix functions * to workaourd the FreeRTOS EINTR issue (when building without lwip) * to correctly choose the sub-system based on fd (when building with lwip) -- passing control to either linux/system or to lwip This commit also addapts tapio-if to provide DHCP client by default and configurable settings for static IP
14 lines
421 B
CMake
14 lines
421 B
CMake
if(${IDF_TARGET} STREQUAL "linux")
|
|
set(requires esp_event esp_stubs protocol_examples_common nvs_flash)
|
|
endif()
|
|
|
|
if("${CONFIG_EXAMPLE_IPV4}" STREQUAL y)
|
|
set(tcp_client_ip tcp_client_v4.c)
|
|
else()
|
|
set(tcp_client_ip tcp_client_v6.c)
|
|
endif()
|
|
|
|
idf_component_register(SRCS "tcp_client_main.c" "${tcp_client_ip}"
|
|
INCLUDE_DIRS "."
|
|
REQUIRES ${requires})
|