fix(bootloader): resolve undefined BIDI references for colorlcd Hebrew builds (#6538)
This commit is contained in:
@@ -146,10 +146,11 @@ endforeach()
|
||||
|
||||
set(RTL_LANGUAGES HE)
|
||||
if(TRANSLATIONS IN_LIST RTL_LANGUAGES)
|
||||
add_definitions(-DTRANSLATION_IS_RTL=1)
|
||||
set(TRANSLATION_IS_RTL 1)
|
||||
else()
|
||||
add_definitions(-DTRANSLATION_IS_RTL=0)
|
||||
set(TRANSLATION_IS_RTL 0)
|
||||
endif()
|
||||
add_definitions(-DTRANSLATION_IS_RTL=${TRANSLATION_IS_RTL})
|
||||
|
||||
set(SRC ${SRC} debug.cpp)
|
||||
|
||||
|
||||
@@ -40,6 +40,11 @@ set(LVGL_SOURCES_MINIMAL
|
||||
misc/lv_utils.c
|
||||
)
|
||||
|
||||
# Add BIDI support for RTL languages (needed for bootloader LVGL draw functions)
|
||||
if(TRANSLATION_IS_RTL)
|
||||
list(APPEND LVGL_SOURCES_MINIMAL misc/lv_bidi.c)
|
||||
endif()
|
||||
|
||||
set(LVGL_SOURCES
|
||||
${LVGL_SOURCES_MINIMAL}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user