Skip to content

Commit acd715b

Browse files
AronRubinme-no-dev
authored andcommitted
[2.0.0] Made selective compile of ArduinoOTA and LITTLEFS libraries add requires #4878
Made selective compile of ArduinoOTA and LITTLEFS libraries add necessary ESP-IDF components in priv_requires. If selective compilation is disabled the requirements will be added anyway.
1 parent 247dba6 commit acd715b

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

Diff for: CMakeLists.txt

+7
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,13 @@ set(priv_includes cores/esp32/libb64)
161161
set(requires spi_flash mbedtls mdns esp_adc_cal)
162162
set(priv_requires fatfs nvs_flash app_update spiffs bootloader_support openssl bt tinyusb main)
163163

164+
if(NOT CONFIG_ARDUINO_SELECTIVE_COMPILATION OR CONFIG_ARDUINO_SELECTIVE_ArduinoOTA)
165+
list(APPEND priv_requires esp_https_ota)
166+
endif()
167+
if(NOT CONFIG_ARDUINO_SELECTIVE_COMPILATION OR CONFIG_ARDUINO_SELECTIVE_LITTLEFS)
168+
list(APPEND priv_requires esp_littlefs)
169+
endif()
170+
164171
idf_component_register(INCLUDE_DIRS ${includedirs} PRIV_INCLUDE_DIRS ${priv_includes} SRCS ${srcs} REQUIRES ${requires} PRIV_REQUIRES ${priv_requires})
165172

166173
if(IDF_TARGET STREQUAL "esp32")

0 commit comments

Comments
 (0)