Browse Source
Merge pull request #6396 from lat9nq/mingw-sdl-fix
externals: Use defaults for building SDL2 on WIN32
pull/15/merge
Morph
5 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
13 additions and
11 deletions
-
externals/CMakeLists.txt
|
|
|
@ -47,19 +47,21 @@ target_include_directories(unicorn-headers INTERFACE ./unicorn/include) |
|
|
|
|
|
|
|
# SDL2 |
|
|
|
if (NOT SDL2_FOUND AND ENABLE_SDL2) |
|
|
|
# Yuzu itself needs: Events Joystick Haptic Sensor Timers |
|
|
|
# Yuzu-cmd also needs: Video (depends on Loadso/Dlopen) |
|
|
|
set(SDL_UNUSED_SUBSYSTEMS |
|
|
|
Atomic Audio Render Power Threads |
|
|
|
File CPUinfo Filesystem Locale) |
|
|
|
foreach(_SUB ${SDL_UNUSED_SUBSYSTEMS}) |
|
|
|
string(TOUPPER ${_SUB} _OPT) |
|
|
|
option(SDL_${_OPT} "" OFF) |
|
|
|
endforeach() |
|
|
|
|
|
|
|
if (NOT WIN32) |
|
|
|
# Yuzu itself needs: Events Joystick Haptic Sensor Timers |
|
|
|
# Yuzu-cmd also needs: Video (depends on Loadso/Dlopen) |
|
|
|
set(SDL_UNUSED_SUBSYSTEMS |
|
|
|
Atomic Audio Render Power Threads |
|
|
|
File CPUinfo Filesystem Locale) |
|
|
|
foreach(_SUB ${SDL_UNUSED_SUBSYSTEMS}) |
|
|
|
string(TOUPPER ${_SUB} _OPT) |
|
|
|
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) |
|
|
|
|