mirror of
https://github.com/yuzu-emu/yuzu-android
synced 2024-12-23 06:21:21 -08:00
externals: Use defaults for building SDL2 on WIN32
Whatever those settings do breaks controller detection on Windows, at least with the MinGW container. If-guard it against WIN32 and just let SDL2 configure using its defaults, aside from static linking.
This commit is contained in:
parent
519ddfae04
commit
185e405bc1
4
externals/CMakeLists.txt
vendored
4
externals/CMakeLists.txt
vendored
@ -47,6 +47,7 @@ target_include_directories(unicorn-headers INTERFACE ./unicorn/include)
|
||||
|
||||
# SDL2
|
||||
if (NOT SDL2_FOUND AND ENABLE_SDL2)
|
||||
if (NOT WIN32)
|
||||
# Yuzu itself needs: Events Joystick Haptic Sensor Timers
|
||||
# Yuzu-cmd also needs: Video (depends on Loadso/Dlopen)
|
||||
set(SDL_UNUSED_SUBSYSTEMS
|
||||
@ -57,9 +58,10 @@ if (NOT SDL2_FOUND AND ENABLE_SDL2)
|
||||
option(SDL_${_OPT} "" OFF)
|
||||
endforeach()
|
||||
|
||||
option(HIDAPI "" ON)
|
||||
endif()
|
||||
set(SDL_STATIC ON)
|
||||
set(SDL_SHARED OFF)
|
||||
option(HIDAPI "" ON)
|
||||
|
||||
add_subdirectory(SDL EXCLUDE_FROM_ALL)
|
||||
add_library(SDL2 ALIAS SDL2-static)
|
||||
|
Loading…
Reference in New Issue
Block a user