Vita: add SDL_GetPreferredLocales support

This commit is contained in:
Ivan Epifanov
2022-03-30 00:12:42 +03:00
committed by Sam Lantinga
parent 178ac19615
commit cbdb67b4f6
2 changed files with 76 additions and 0 deletions

View File

@@ -2279,6 +2279,11 @@ elseif(VITA)
${SDL2_SOURCE_DIR}/src/thread/generic/SDL_systls.c)
set(HAVE_SDL_THREADS TRUE)
endif()
if(SDL_LOCALE)
file(GLOB LOCALE_SOURCES ${SDL2_SOURCE_DIR}/src/locale/vita/*.c)
set(SOURCE_FILES ${SOURCE_FILES} ${LOCALE_SOURCES})
set(HAVE_SDL_LOCALE TRUE)
endif()
if(SDL_TIMERS)
set(SDL_TIMER_VITA 1)
file(GLOB TIMER_SOURCES ${SDL2_SOURCE_DIR}/src/timer/vita/*.c)