esp32: do not compile esp32-helper by default
...as it is highly coupled with other ESP-IDF components and should be written
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 252eccb..f23c061 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -73,6 +73,7 @@
# 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 @@
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 @@
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