refactor: bootloader & cmake cleanup (#5232)
This commit is contained in:
+4
-6
@@ -6,7 +6,7 @@ if(HARWARE_TOUCH)
|
||||
add_definitions(-DHARDWARE_TOUCH)
|
||||
endif()
|
||||
|
||||
set(LIBOPENUI_SRC
|
||||
set(LIBOPENUI_SOURCES
|
||||
libopenui_file.cpp
|
||||
bitmapbuffer.cpp
|
||||
bitmapbuffer_fileio.cpp
|
||||
@@ -35,10 +35,8 @@ set(LIBOPENUI_SRC
|
||||
keyboard_base.cpp
|
||||
)
|
||||
|
||||
foreach(LIBOPENUI_FILE ${LIBOPENUI_SRC})
|
||||
set(LIBOPENUI_SRC_FILES ${LIBOPENUI_SRC_FILES} ${LIBOPENUI_SRC_DIR}/src/${LIBOPENUI_FILE})
|
||||
endforeach()
|
||||
list(TRANSFORM LIBOPENUI_SOURCES PREPEND ${LIBOPENUI_SRC_DIR}/src/)
|
||||
|
||||
set(SRC ${SRC} ${LIBOPENUI_SRC_FILES}
|
||||
set(LIBOPENUI_SOURCES ${LIBOPENUI_SOURCES}
|
||||
${LIBOPENUI_SRC_DIR}/thirdparty/lz4/lz4.c
|
||||
)
|
||||
)
|
||||
|
||||
+2
-43
@@ -93,33 +93,6 @@ set(LVGL_SOURCES
|
||||
|
||||
hal/lv_hal_indev.c
|
||||
|
||||
# font/lv_font_unscii_8.c
|
||||
# font/lv_font_unscii_16.c
|
||||
# font/lv_font_simsun_16_cjk.c
|
||||
# font/lv_font_dejavu_16_persian_hebrew.c
|
||||
# font/lv_font_montserrat_8.c
|
||||
# font/lv_font_montserrat_10.c
|
||||
# font/lv_font_montserrat_12.c
|
||||
# font/lv_font_montserrat_12_subpx.c
|
||||
# font/lv_font_montserrat_14.c
|
||||
# font/lv_font_montserrat_16.c
|
||||
# font/lv_font_montserrat_18.c
|
||||
# font/lv_font_montserrat_20.c
|
||||
# font/lv_font_montserrat_22.c
|
||||
# font/lv_font_montserrat_24.c
|
||||
# font/lv_font_montserrat_26.c
|
||||
# font/lv_font_montserrat_28.c
|
||||
# font/lv_font_montserrat_28_compressed.c
|
||||
# font/lv_font_montserrat_30.c
|
||||
# font/lv_font_montserrat_32.c
|
||||
# font/lv_font_montserrat_34.c
|
||||
# font/lv_font_montserrat_36.c
|
||||
# font/lv_font_montserrat_38.c
|
||||
# font/lv_font_montserrat_40.c
|
||||
# font/lv_font_montserrat_42.c
|
||||
# font/lv_font_montserrat_44.c
|
||||
# font/lv_font_montserrat_46.c
|
||||
# font/lv_font_montserrat_48.c
|
||||
widgets/lv_line.c
|
||||
widgets/lv_dropdown.c
|
||||
widgets/lv_objx_templ.c
|
||||
@@ -176,21 +149,7 @@ set(LVGL_SOURCES
|
||||
extra/widgets/span/lv_span.c
|
||||
extra/widgets/keyboard/lv_keyboard.c
|
||||
extra/widgets/msgbox/lv_msgbox.c
|
||||
# extra/themes/basic/lv_theme_basic.c
|
||||
# extra/themes/default/lv_theme_default.c
|
||||
# extra/themes/mono/lv_theme_mono.c
|
||||
)
|
||||
|
||||
foreach(LVGL_FILE ${LVGL_SOURCES_MINIMAL})
|
||||
set(LVGL_SRC_FILES_MINIMAL ${LVGL_SRC_FILES_MINIMAL} ${LVGL_SRC_DIR}/${LVGL_FILE})
|
||||
endforeach()
|
||||
|
||||
foreach(LVGL_FILE ${LVGL_SOURCES})
|
||||
set(LVGL_SRC_FILES ${LVGL_SRC_FILES} ${LVGL_SRC_DIR}/${LVGL_FILE})
|
||||
endforeach()
|
||||
|
||||
foreach(LVGL_FILE ${LVGL_SRC_FILES})
|
||||
SET_SOURCE_FILES_PROPERTIES( ${LVGL_FILE} PROPERTIES COMPILE_FLAGS -O3 )
|
||||
endforeach()
|
||||
|
||||
set(SRC ${SRC} ${LVGL_SRC_FILES})
|
||||
list(TRANSFORM LVGL_SOURCES_MINIMAL PREPEND ${LVGL_SRC_DIR}/)
|
||||
list(TRANSFORM LVGL_SOURCES PREPEND ${LVGL_SRC_DIR}/)
|
||||
|
||||
Reference in New Issue
Block a user