From c9c691ab7e7d2f6945c49a7327652df401905361 Mon Sep 17 00:00:00 2001 From: "Morgan 'ARR\\!' Allen" Date: Thu, 5 Dec 2024 18:53:16 -0800 Subject: [PATCH] make LVGL bindings optional based on LV_CONF_SKIP cmake variable being defined --- CMakeLists.txt | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index ffb8ab3..95f95e8 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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}