mirror of
https://github.com/lvgl/lvgl.git
synced 2025-01-14 06:42:58 +08:00
18 lines
486 B
CMake
18 lines
486 B
CMake
if(ESP_PLATFORM)
|
|
|
|
file(GLOB_RECURSE SOURCES src/*.c)
|
|
|
|
idf_component_register(SRCS ${SOURCES}
|
|
INCLUDE_DIRS . src)
|
|
|
|
target_compile_definitions(${COMPONENT_LIB} PUBLIC "-DLV_CONF_INCLUDE_SIMPLE")
|
|
target_compile_definitions(${COMPONENT_LIB} PUBLIC "-DLV_CONF_SKIP")
|
|
|
|
if (CONFIG_LV_ATTRIBUTE_FAST_MEM_USE_IRAM)
|
|
target_compile_definitions(${COMPONENT_LIB} PUBLIC "-DLV_ATTRIBUTE_FAST_MEM=IRAM_ATTR")
|
|
endif()
|
|
|
|
else()
|
|
message(FATAL_ERROR "Unknown platform.")
|
|
endif()
|