mirror of
https://github.com/espressif/esp-idf.git
synced 2025-08-18 23:54:39 +00:00

Currently, several examples do not explicitly state their component dependencies, relying instead on the default behavior that includes all registered components and commonly required ones in the build. Explicitly adding component dependencies can reduce build time when set(COMPONENTS main) is used. Signed-off-by: Frantisek Hrbata <frantisek.hrbata@espressif.com>
14 lines
536 B
CMake
14 lines
536 B
CMake
set(embedded_images)
|
|
if(CONFIG_EXAMPLE_LCD_IMAGE_FROM_EMBEDDED_BINARY)
|
|
file(GLOB_RECURSE embedded_images images/*.c)
|
|
endif()
|
|
|
|
idf_component_register(SRCS "i80_controller_example_main.c" "lvgl_demo_ui.c" ${embedded_images}
|
|
PRIV_REQUIRES esp_lcd spiffs esp_psram
|
|
INCLUDE_DIRS ".")
|
|
|
|
if(CONFIG_EXAMPLE_LCD_IMAGE_FROM_FILE_SYSTEM)
|
|
# Create a partition to store the image resources in the filesystem
|
|
spiffs_create_partition_image(storage ./images/filesystem FLASH_IN_PROJECT)
|
|
endif()
|