make LVGL bindings optional based on LV_CONF_SKIP cmake variable being defined
This commit is contained in:
parent
b97c7818f5
commit
c9c691ab7e
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
|
||||
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}
|
||||
|
|
Loading…
Reference in a new issue