make LVGL bindings optional based on LV_CONF_SKIP cmake variable being defined

This commit is contained in:
Morgan 'ARR\!' Allen 2024-12-05 18:54:23 -08:00
parent b97c7818f5
commit a98390b1cb

View file

@ -6,9 +6,10 @@ if(${ESP_PLATFORM})
list(APPEND SRCS src/cfglr_nvs.c src/cfglr_signal_idf_event.c)
endif()
# make LVGL configurable
list(APPEND REQUIRES lvgl)
list(APPEND SRCS src/cfglr_signal_lvgl.c)
if(DEFINED LV_CONF_SKIP)
list(APPEND REQUIRES lvgl)
list(APPEND SRCS src/cfglr_signal_lvgl.c)
endif()
idf_component_register(
SRCS ${SRCS}