mirror of
https://github.com/yuzu-emu/yuzu-android
synced 2024-12-23 18:11:21 -08:00
externals/CMakeLists: fix detection/init of Switch controllers in SDL 2.0.18
Enable SDL_THREADS and SDL_ATOMIC Also set SDL_WAYLAND=OFF due to build issue Closes #7572
This commit is contained in:
parent
e242f16986
commit
e610485cd2
7
externals/CMakeLists.txt
vendored
7
externals/CMakeLists.txt
vendored
@ -52,11 +52,12 @@ endif()
|
|||||||
# SDL2
|
# SDL2
|
||||||
if (YUZU_USE_EXTERNAL_SDL2)
|
if (YUZU_USE_EXTERNAL_SDL2)
|
||||||
if (NOT WIN32)
|
if (NOT WIN32)
|
||||||
# Yuzu itself needs: Events Joystick Haptic Sensor Timers Audio
|
# Yuzu itself needs: Events Joystick Haptic Sensor Timers Audio Threads Atomic
|
||||||
|
# Since 2.0.18 Threads/Atomic required for HIDAPI/libusb (see https://github.com/libsdl-org/SDL/issues/5095)
|
||||||
# Yuzu-cmd also needs: Video (depends on Loadso/Dlopen)
|
# Yuzu-cmd also needs: Video (depends on Loadso/Dlopen)
|
||||||
set(SDL_UNUSED_SUBSYSTEMS
|
set(SDL_UNUSED_SUBSYSTEMS
|
||||||
Atomic Render Power Threads
|
Render Power File CPUinfo
|
||||||
File CPUinfo Filesystem Locale)
|
Filesystem Locale)
|
||||||
foreach(_SUB ${SDL_UNUSED_SUBSYSTEMS})
|
foreach(_SUB ${SDL_UNUSED_SUBSYSTEMS})
|
||||||
string(TOUPPER ${_SUB} _OPT)
|
string(TOUPPER ${_SUB} _OPT)
|
||||||
option(SDL_${_OPT} "" OFF)
|
option(SDL_${_OPT} "" OFF)
|
||||||
|
Loading…
Reference in New Issue
Block a user