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
16 lines
592 B
CMake
16 lines
592 B
CMake
if(NOT ${IDF_TARGET} STREQUAL "linux")
|
|
set(req lwip esp_event)
|
|
else()
|
|
set(req linux esp_event)
|
|
endif()
|
|
|
|
idf_component_register(SRCS "esp_http_client.c"
|
|
"lib/http_auth.c"
|
|
"lib/http_header.c"
|
|
"lib/http_utils.c"
|
|
INCLUDE_DIRS "include"
|
|
PRIV_INCLUDE_DIRS "lib/include"
|
|
# lwip is a public requirement because esp_http_client.h includes sys/socket.h
|
|
REQUIRES ${req}
|
|
PRIV_REQUIRES tcp_transport http_parser)
|