mirror of
https://github.com/lvgl/lvgl.git
synced 2026-05-24 00:07:03 +08:00
build(esp): only add fatfs component if use_fs_fatfs is enabled (#9746)
This commit is contained in:
@@ -55,11 +55,15 @@ else()
|
||||
set_source_files_properties(${DEMO_MUSIC_SOURCES} COMPILE_FLAGS "-Wno-format")
|
||||
endif()
|
||||
|
||||
if(${target} STREQUAL "esp32p4")
|
||||
set(IDF_COMPONENTS esp_driver_ppa esp_mm esp_timer fatfs log)
|
||||
else()
|
||||
set(IDF_COMPONENTS esp_timer fatfs log)
|
||||
endif()
|
||||
set(IDF_COMPONENTS esp_timer log)
|
||||
|
||||
if(${target} STREQUAL "esp32p4")
|
||||
list(APPEND IDF_COMPONENTS esp_driver_ppa esp_mm)
|
||||
endif()
|
||||
|
||||
if(CONFIG_LV_USE_FS_FATFS)
|
||||
list(APPEND IDF_COMPONENTS fatfs)
|
||||
endif()
|
||||
|
||||
idf_component_register(SRCS ${SOURCES} ${EXAMPLE_SOURCES} ${DEMO_SOURCES}
|
||||
INCLUDE_DIRS ${LVGL_ROOT_DIR} ${LVGL_ROOT_DIR}/src ${LVGL_ROOT_DIR}/../
|
||||
|
||||
Reference in New Issue
Block a user