删除LVGL,屏幕驱动测试完成
This commit is contained in:
@@ -1,5 +1,4 @@
|
||||
idf_component_register(
|
||||
SRCS
|
||||
set(platform_srcs
|
||||
"src/runtime/platform_core_runtime.c"
|
||||
"src/runtime/platform_storage.c"
|
||||
"src/runtime/platform_time.c"
|
||||
@@ -9,19 +8,17 @@ idf_component_register(
|
||||
"src/runtime/platform_behavior_runtime.c"
|
||||
"src/runtime/platform_multimodal_runtime.c"
|
||||
"src/runtime/platform_lcd_runtime.c"
|
||||
"src/lcd_face.c"
|
||||
"src/platform_stepper_driver.c"
|
||||
"src/platform_digital_input_driver.c"
|
||||
"src/lcd.c"
|
||||
"src/lcd_direct.c"
|
||||
"src/lcd_direct_assets.c"
|
||||
"src/multimodal/audio_pipeline.c"
|
||||
"src/multimodal/transport_ws.c"
|
||||
"src/wifi_portal_bridge.cpp"
|
||||
"src/platform_behavior_stubs.c"
|
||||
INCLUDE_DIRS
|
||||
"include"
|
||||
PRIV_INCLUDE_DIRS
|
||||
"internal"
|
||||
PRIV_REQUIRES
|
||||
)
|
||||
|
||||
set(platform_priv_requires
|
||||
78__esp-wifi-connect
|
||||
cxx
|
||||
driver
|
||||
@@ -45,56 +42,57 @@ idf_component_register(
|
||||
json
|
||||
littlefs
|
||||
log
|
||||
lvgl
|
||||
espressif__mdns
|
||||
mbedtls
|
||||
nvs_flash
|
||||
)
|
||||
|
||||
set(platform_lvgl_animation_src_dir "${CMAKE_CURRENT_SOURCE_DIR}/assets/lvgl_animations")
|
||||
set(platform_audio_prompt_src_dir "${CMAKE_CURRENT_SOURCE_DIR}/assets/audio_prompts")
|
||||
set(platform_lvgl_animation_image_dir "${CMAKE_CURRENT_BINARY_DIR}/lvgl_animations_image")
|
||||
set(platform_lvgl_animation_stage_stamp "${CMAKE_CURRENT_BINARY_DIR}/lvgl_animations_image.stamp")
|
||||
file(GLOB_RECURSE platform_lvgl_animation_bin_files CONFIGURE_DEPENDS
|
||||
"${platform_lvgl_animation_src_dir}/*.bin"
|
||||
idf_component_register(
|
||||
SRCS
|
||||
${platform_srcs}
|
||||
INCLUDE_DIRS
|
||||
"include"
|
||||
PRIV_INCLUDE_DIRS
|
||||
"internal"
|
||||
PRIV_REQUIRES
|
||||
${platform_priv_requires}
|
||||
)
|
||||
|
||||
target_add_binary_data(${COMPONENT_LIB}
|
||||
"assets/lcd/buyunqian1.rle"
|
||||
BINARY
|
||||
)
|
||||
|
||||
set(platform_audio_prompt_src_dir "${CMAKE_CURRENT_SOURCE_DIR}/assets/audio_prompts")
|
||||
set(platform_asset_image_dir "${CMAKE_CURRENT_BINARY_DIR}/asset_image")
|
||||
set(platform_asset_stage_stamp "${CMAKE_CURRENT_BINARY_DIR}/asset_image.stamp")
|
||||
file(GLOB_RECURSE platform_audio_prompt_files CONFIGURE_DEPENDS
|
||||
"${platform_audio_prompt_src_dir}/*.opus"
|
||||
)
|
||||
|
||||
set(platform_lvgl_animation_stage_commands)
|
||||
foreach(animation_file IN LISTS platform_lvgl_animation_bin_files)
|
||||
file(RELATIVE_PATH animation_rel_path "${platform_lvgl_animation_src_dir}" "${animation_file}")
|
||||
get_filename_component(animation_rel_dir "${animation_rel_path}" DIRECTORY)
|
||||
list(APPEND platform_lvgl_animation_stage_commands
|
||||
COMMAND ${CMAKE_COMMAND} -E make_directory "${platform_lvgl_animation_image_dir}/${animation_rel_dir}"
|
||||
COMMAND ${CMAKE_COMMAND} -E copy_if_different
|
||||
"${animation_file}"
|
||||
"${platform_lvgl_animation_image_dir}/${animation_rel_path}"
|
||||
)
|
||||
endforeach()
|
||||
set(platform_asset_stage_commands)
|
||||
foreach(audio_file IN LISTS platform_audio_prompt_files)
|
||||
file(RELATIVE_PATH audio_rel_path "${platform_audio_prompt_src_dir}" "${audio_file}")
|
||||
list(APPEND platform_lvgl_animation_stage_commands
|
||||
COMMAND ${CMAKE_COMMAND} -E make_directory "${platform_lvgl_animation_image_dir}/audio_prompts"
|
||||
list(APPEND platform_asset_stage_commands
|
||||
COMMAND ${CMAKE_COMMAND} -E make_directory "${platform_asset_image_dir}/audio_prompts"
|
||||
COMMAND ${CMAKE_COMMAND} -E copy_if_different
|
||||
"${audio_file}"
|
||||
"${platform_lvgl_animation_image_dir}/audio_prompts/${audio_rel_path}"
|
||||
"${platform_asset_image_dir}/audio_prompts/${audio_rel_path}"
|
||||
)
|
||||
endforeach()
|
||||
|
||||
add_custom_command(
|
||||
OUTPUT "${platform_lvgl_animation_stage_stamp}"
|
||||
COMMAND ${CMAKE_COMMAND} -E rm -rf "${platform_lvgl_animation_image_dir}"
|
||||
COMMAND ${CMAKE_COMMAND} -E make_directory "${platform_lvgl_animation_image_dir}"
|
||||
${platform_lvgl_animation_stage_commands}
|
||||
COMMAND ${CMAKE_COMMAND} -E touch "${platform_lvgl_animation_stage_stamp}"
|
||||
DEPENDS ${platform_lvgl_animation_bin_files} ${platform_audio_prompt_files}
|
||||
OUTPUT "${platform_asset_stage_stamp}"
|
||||
COMMAND ${CMAKE_COMMAND} -E rm -rf "${platform_asset_image_dir}"
|
||||
COMMAND ${CMAKE_COMMAND} -E make_directory "${platform_asset_image_dir}"
|
||||
${platform_asset_stage_commands}
|
||||
COMMAND ${CMAKE_COMMAND} -E touch "${platform_asset_stage_stamp}"
|
||||
DEPENDS ${platform_audio_prompt_files}
|
||||
)
|
||||
|
||||
littlefs_create_partition_image(
|
||||
gifpack
|
||||
"${platform_lvgl_animation_image_dir}"
|
||||
"${platform_asset_image_dir}"
|
||||
FLASH_IN_PROJECT
|
||||
DEPENDS "${platform_lvgl_animation_stage_stamp}"
|
||||
DEPENDS "${platform_asset_stage_stamp}"
|
||||
)
|
||||
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 283 KiB |
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user