mirror of
https://github.com/warmcat/libwebsockets.git
synced 2025-03-09 00:00:04 +01:00
esp32: update build arrangements
This commit is contained in:
parent
050d23f0be
commit
60b995b8ce
1 changed files with 13 additions and 1 deletions
|
@ -58,7 +58,7 @@ set(LWS_WITH_POLL 1)
|
|||
|
||||
if (ESP_PLATFORM)
|
||||
set(LWS_ESP_PLATFORM 1)
|
||||
set(CMAKE_TOOLCHAIN_FILE contrib/cross-esp32.cmake)
|
||||
#set(CMAKE_TOOLCHAIN_FILE contrib/cross-esp32.cmake)
|
||||
set(LWIP_PROVIDE_ERRNO 1)
|
||||
endif()
|
||||
|
||||
|
@ -66,6 +66,18 @@ endif()
|
|||
project(libwebsockets C CXX)
|
||||
include(CTest)
|
||||
|
||||
if (ESP_PLATFORM)
|
||||
include_directories(
|
||||
${IDF_PATH}/components/freertos/port/xtensa/include/
|
||||
${IDF_PATH}/components/hal/include
|
||||
${IDF_PATH}/components/soc/${CONFIG_IDF_TARGET}/include/
|
||||
${IDF_PATH}/components/soc/include/
|
||||
${IDF_PATH}/components/esp_hw_support/include
|
||||
${IDF_PATH}/components/hal/${CONFIG_IDF_TARGET}/include/
|
||||
)
|
||||
endif()
|
||||
|
||||
|
||||
#
|
||||
# Select features recommended for PC distro packaging
|
||||
#
|
||||
|
|
Loading…
Add table
Reference in a new issue