mirror of
https://github.com/warmcat/libwebsockets.git
synced 2025-03-30 00:00:16 +01:00
esp32: do not compile esp32-helper by default
...as it is highly coupled with other ESP-IDF components and should be written
This commit is contained in:
parent
78e1a8f464
commit
43f919f195
1 changed files with 6 additions and 1 deletions
|
@ -73,6 +73,7 @@ option(LWS_STATIC_PIC "Build the static version of the library with position-ind
|
|||
# Specific platforms
|
||||
#
|
||||
option(LWS_WITH_ESP32 "Build for ESP32" OFF)
|
||||
option(LWS_WITH_ESP32_HELPER "Build ESP32 helper" OFF)
|
||||
option(LWS_PLAT_OPTEE "Build for OPTEE" OFF)
|
||||
#
|
||||
# Client / Server / Test Apps build control
|
||||
|
@ -137,6 +138,8 @@ option(LWS_WITH_LEJP_CONF "With LEJP configuration parser as used by lwsws" OFF)
|
|||
if(ESP_PLATFORM)
|
||||
message(STATUS "ESP-IDF enabled")
|
||||
set(LWS_WITH_ESP32 ON)
|
||||
else()
|
||||
set(LWS_WITH_ESP32_HELPER OFF)
|
||||
endif()
|
||||
|
||||
if (WIN32 OR LWS_WITH_ESP32)
|
||||
|
@ -1240,13 +1243,15 @@ else()
|
|||
list(APPEND SOURCES
|
||||
lib/plat/esp32/esp32-fds.c
|
||||
lib/plat/esp32/esp32-file.c
|
||||
lib/plat/esp32/esp32-helpers.c
|
||||
lib/plat/esp32/esp32-init.c
|
||||
lib/plat/esp32/esp32-misc.c
|
||||
lib/plat/esp32/esp32-pipe.c
|
||||
lib/plat/esp32/esp32-service.c
|
||||
lib/plat/esp32/esp32-sockets.c
|
||||
lib/misc/romfs.c)
|
||||
if(LWS_WITH_ESP32_HELPER)
|
||||
list(APPEND SOURCES lib/plat/esp32/esp32-helpers.c)
|
||||
endif()
|
||||
else()
|
||||
list(APPEND SOURCES
|
||||
lib/plat/unix/unix-caps.c
|
||||
|
|
Loading…
Add table
Reference in a new issue