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