mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
4d629be602
* Users can now use libbsd string.h and sys/cdefs.h functionality (e.g., strlcpy, containerof) on Linux by just including string.h or sys/cdefs.h. In other words, the includes are the same on the Linux target as well as on chips targets (ESP32, etc.). * libbsd linking is done by the linux component (belongs to common components) now instead of handling it separately in each component
23 lines
827 B
CMake
23 lines
827 B
CMake
set(priv_req mbedtls)
|
|
set(priv_inc_dir "src/util")
|
|
set(requires http_parser esp_event)
|
|
if(NOT ${IDF_TARGET} STREQUAL "linux")
|
|
list(APPEND priv_req lwip esp_timer)
|
|
list(APPEND priv_inc_dir "src/port/esp32")
|
|
else()
|
|
list(APPEND priv_inc_dir "src/port/linux")
|
|
list(APPEND priv_req pthread)
|
|
endif()
|
|
|
|
idf_component_register(SRCS "src/httpd_main.c"
|
|
"src/httpd_parse.c"
|
|
"src/httpd_sess.c"
|
|
"src/httpd_txrx.c"
|
|
"src/httpd_uri.c"
|
|
"src/httpd_ws.c"
|
|
"src/util/ctrl_sock.c"
|
|
INCLUDE_DIRS "include"
|
|
PRIV_INCLUDE_DIRS ${priv_inc_dir}
|
|
REQUIRES ${requires}
|
|
PRIV_REQUIRES ${priv_req})
|