2022-11-08 03:44:09 -05:00
|
|
|
if(NOT ${IDF_TARGET} STREQUAL "linux")
|
2022-11-16 07:01:07 -05:00
|
|
|
set(req lwip esp_event)
|
|
|
|
else()
|
2023-04-03 14:31:51 -04:00
|
|
|
set(req linux esp_event)
|
2022-11-08 03:44:09 -05:00
|
|
|
endif()
|
|
|
|
|
2019-04-28 03:38:23 -04:00
|
|
|
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"
|
2022-04-14 14:03:56 -04:00
|
|
|
# lwip is a public requirement because esp_http_client.h includes sys/socket.h
|
2022-11-08 03:44:09 -05:00
|
|
|
REQUIRES ${req}
|
2022-05-11 10:01:48 -04:00
|
|
|
PRIV_REQUIRES tcp_transport http_parser)
|