Fix check for arduino component (#204)

This commit is contained in:
Jeff 2024-10-06 17:16:48 -07:00 committed by GitHub
parent b807e6671f
commit 987a69f544
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -14,11 +14,18 @@ elseif("nimble" IN_LIST BUILD_COMPONENTS OR "__nimble" IN_LIST __hack_component_
) )
endif() endif()
if("arduino" IN_LIST BUILD_COMPONENTS OR __hack_component_targets MATCHES "__idf_arduino") # Arduino install using IDF component manager
if("espressif__arduino-esp32" IN_LIST BUILD_COMPONENTS OR "___idf_espressif__arduino-esp32" IN_LIST __hack_component_targets)
list(APPEND ESP_NIMBLE_PRIV_REQUIRES
arduino-esp32
)
# Manual installation of Arduino framework
elseif("arduino" IN_LIST BUILD_COMPONENTS OR "__idf_arduino" IN_LIST __hack_component_targets)
list(APPEND ESP_NIMBLE_PRIV_REQUIRES list(APPEND ESP_NIMBLE_PRIV_REQUIRES
arduino arduino
) )
elseif("framework-arduinoespressif32" IN_LIST BUILD_COMPONENTS OR __hack_component_targets MATCHES "___idf_framework-arduinoespressif32") # PlatformIO
elseif("framework-arduinoespressif32" IN_LIST BUILD_COMPONENTS OR "___idf_framework-arduinoespressif32" IN_LIST __hack_component_targets)
list(APPEND ESP_NIMBLE_PRIV_REQUIRES list(APPEND ESP_NIMBLE_PRIV_REQUIRES
framework-arduinoespressif32 framework-arduinoespressif32
) )