- Updated LVGL from 8.3 to 9.0 (removed example/docs/demo folders) - Updated esp_lvgl_port to current status of the `lvgl9` branch on `esp-bsp`: https://github.com/espressif/esp-bsp/tree/lvgl9 - Updated all boards and drivers - Removed `libs/lv_drivers` subproject as SDL is now supported by LVGL directly (although keyboard input seems broken) - Updated `libs/lv_screenshot` - Fixed the way `tt_statusbar` widget works due to behaviour change in LVGL - Updated other lvgl code
32 lines
929 B
CMake
32 lines
929 B
CMake
file(GLOB_RECURSE SOURCES ${LVGL_ROOT_DIR}/src/*.c)
|
|
|
|
idf_build_get_property(LV_MICROPYTHON LV_MICROPYTHON)
|
|
|
|
if(LV_MICROPYTHON)
|
|
idf_component_register(
|
|
SRCS
|
|
${SOURCES}
|
|
INCLUDE_DIRS
|
|
${LVGL_ROOT_DIR}
|
|
${LVGL_ROOT_DIR}/src
|
|
${LVGL_ROOT_DIR}/../
|
|
REQUIRES
|
|
main)
|
|
else()
|
|
if(CONFIG_LV_BUILD_EXAMPLES)
|
|
file(GLOB_RECURSE EXAMPLE_SOURCES ${LVGL_ROOT_DIR}/examples/*.c)
|
|
set_source_files_properties(${EXAMPLE_SOURCES} COMPILE_FLAGS "-Wno-unused-variable -Wno-format")
|
|
endif()
|
|
|
|
idf_component_register(SRCS ${SOURCES} ${EXAMPLE_SOURCES}
|
|
INCLUDE_DIRS ${LVGL_ROOT_DIR} ${LVGL_ROOT_DIR}/src ${LVGL_ROOT_DIR}/../
|
|
REQUIRES esp_timer)
|
|
endif()
|
|
|
|
target_compile_definitions(${COMPONENT_LIB} PUBLIC "-DLV_CONF_INCLUDE_SIMPLE")
|
|
|
|
if(CONFIG_LV_ATTRIBUTE_FAST_MEM_USE_IRAM)
|
|
target_compile_definitions(${COMPONENT_LIB}
|
|
PUBLIC "-DLV_ATTRIBUTE_FAST_MEM=IRAM_ATTR")
|
|
endif()
|