mirror of
https://github.com/lvgl/lvgl.git
synced 2025-01-14 06:42:58 +08:00
a8f30120ce
* fix(CMake) split CMakeLists.txt, add options, includes and dependencies * fix(CMake) do not use 'project' keyword with ESP_PLATFORM * fix(CMake) prefix includes with CMAKE_CURRENT_LIST_DIR * Don't depend on CMAKE_CURRENT_SOURCE_DIR * fix(CMake) rename baremetal.cmake to custom.cmake * fix(CMake) add CMake documentation
34 lines
997 B
CMake
34 lines
997 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)
|
|
|
|
target_compile_definitions(${COMPONENT_LIB}
|
|
INTERFACE "-DLV_CONF_INCLUDE_SIMPLE")
|
|
|
|
if(CONFIG_LV_ATTRIBUTE_FAST_MEM_USE_IRAM)
|
|
target_compile_definitions(${COMPONENT_LIB}
|
|
INTERFACE "-DLV_ATTRIBUTE_FAST_MEM=IRAM_ATTR")
|
|
endif()
|
|
else()
|
|
idf_component_register(SRCS ${SOURCES} INCLUDE_DIRS ${LVGL_ROOT_DIR}
|
|
${LVGL_ROOT_DIR}/src ${LVGL_ROOT_DIR}/../)
|
|
|
|
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()
|
|
endif()
|