From 9db15ed51d1ecb6c23ad2cc1abb4e4e807df53bb Mon Sep 17 00:00:00 2001 From: Aron Rubin Date: Mon, 1 Mar 2021 15:43:28 -0500 Subject: [PATCH] Made selective compile of ArduinoOTA and LITTLEFS libraries add necessary ESP-IDF components in priv_requires. --- CMakeLists.txt | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 1cbdf1e34a5..c440fe89d7e 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -154,6 +154,13 @@ set(priv_includes cores/esp32/libb64) set(requires spi_flash mbedtls mdns esp_adc_cal) set(priv_requires fatfs nvs_flash app_update spiffs bootloader_support openssl bt tinyusb main) +if(NOT CONFIG_ARDUINO_SELECTIVE_COMPILATION OR CONFIG_ARDUINO_SELECTIVE_ArduinoOTA) + list(APPEND priv_requires esp_https_ota) +endif() +if(NOT CONFIG_ARDUINO_SELECTIVE_COMPILATION OR CONFIG_ARDUINO_SELECTIVE_LITTLEFS) + list(APPEND priv_requires esp_littlefs) +endif() + idf_component_register(INCLUDE_DIRS ${includedirs} PRIV_INCLUDE_DIRS ${priv_includes} SRCS ${srcs} REQUIRES ${requires} PRIV_REQUIRES ${priv_requires}) if(IDF_TARGET STREQUAL "esp32")