Fix for simulator build and improve ESP-IDF build (#432)

This commit is contained in:
Ken Van Hoeylandt
2025-12-22 21:16:51 +01:00
committed by GitHub
parent 6c4a9975a4
commit 134e0b34b6
5 changed files with 12 additions and 6 deletions
+3 -1
View File
@@ -104,7 +104,9 @@ if (NOT DEFINED ENV{ESP_IDF_VERSION})
add_subdirectory(Libraries/SDL) # Added as idf component for ESP and as library for other targets
# LVGL
add_compile_definitions($<$<BOOL:${LV_USE_DRAW_SDL}>:LV_USE_DRAW_SDL=1>)
set(CONFIG_LV_BUILD_DEMOS OFF CACHE BOOL "" FORCE)
set(CONFIG_LV_BUILD_EXAMPLES OFF CACHE BOOL "" FORCE)
set(CONFIG_LV_USE_DRAW_SDL ON CACHE BOOL "" FORCE)
add_subdirectory(Libraries/lvgl) # Added as idf component for ESP and as library for other targets
target_link_libraries(lvgl PRIVATE SDL2-static)