make LVGL bindings optional based on LV_CONF_SKIP cmake variable being defined
This commit is contained in:
parent
b97c7818f5
commit
a98390b1cb
1 changed files with 4 additions and 3 deletions
|
@ -6,9 +6,10 @@ if(${ESP_PLATFORM})
|
|||
list(APPEND SRCS src/cfglr_nvs.c src/cfglr_signal_idf_event.c)
|
||||
endif()
|
||||
|
||||
# make LVGL configurable
|
||||
if(DEFINED LV_CONF_SKIP)
|
||||
list(APPEND REQUIRES lvgl)
|
||||
list(APPEND SRCS src/cfglr_signal_lvgl.c)
|
||||
endif()
|
||||
|
||||
idf_component_register(
|
||||
SRCS ${SRCS}
|
||||
|
|
Loading…
Reference in a new issue