Skip to content

Commit 22908cb

Browse files
authored
[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 9604cdf commit 22908cb

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
@@ -154,6 +154,13 @@ set(priv_includes cores/esp32/libb64)
154154
set(requires spi_flash mbedtls mdns esp_adc_cal)
155155
set(priv_requires fatfs nvs_flash app_update spiffs bootloader_support openssl bt tinyusb main)
156156

157+
if(NOT CONFIG_ARDUINO_SELECTIVE_COMPILATION OR CONFIG_ARDUINO_SELECTIVE_ArduinoOTA)
158+
list(APPEND priv_requires esp_https_ota)
159+
endif()
160+
if(NOT CONFIG_ARDUINO_SELECTIVE_COMPILATION OR CONFIG_ARDUINO_SELECTIVE_LITTLEFS)
161+
list(APPEND priv_requires esp_littlefs)
162+
endif()
163+
157164
idf_component_register(INCLUDE_DIRS ${includedirs} PRIV_INCLUDE_DIRS ${priv_includes} SRCS ${srcs} REQUIRES ${requires} PRIV_REQUIRES ${priv_requires})
158165

159166
if(IDF_TARGET STREQUAL "esp32")

0 commit comments

Comments
 (0)