diff options
Diffstat (limited to '')
| -rw-r--r-- | externals/CMakeLists.txt | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/externals/CMakeLists.txt b/externals/CMakeLists.txt index 5a54d8de1..fe1c088ca 100644 --- a/externals/CMakeLists.txt +++ b/externals/CMakeLists.txt | |||
| @@ -47,9 +47,20 @@ target_include_directories(unicorn-headers INTERFACE ./unicorn/include) | |||
| 47 | 47 | ||
| 48 | # SDL2 | 48 | # SDL2 |
| 49 | if (NOT SDL2_FOUND AND ENABLE_SDL2) | 49 | if (NOT SDL2_FOUND AND ENABLE_SDL2) |
| 50 | # Yuzu itself needs: Events Joystick Haptic Sensor Timers | ||
| 51 | # Yuzu-cmd also needs: Video (depends on Loadso/Dlopen) | ||
| 52 | set(SDL_UNUSED_SUBSYSTEMS | ||
| 53 | Atomic Audio Render Power Threads | ||
| 54 | File CPUinfo Filesystem Locale) | ||
| 55 | foreach(_SUB ${SDL_UNUSED_SUBSYSTEMS}) | ||
| 56 | string(TOUPPER ${_SUB} _OPT) | ||
| 57 | option(SDL_${_OPT} "" OFF) | ||
| 58 | endforeach() | ||
| 59 | |||
| 50 | set(SDL_STATIC ON) | 60 | set(SDL_STATIC ON) |
| 51 | set(SDL_SHARED OFF) | 61 | set(SDL_SHARED OFF) |
| 52 | set(OPT_DEF_HIDAPI ON) | 62 | option(HIDAPI "" ON) |
| 63 | |||
| 53 | add_subdirectory(SDL EXCLUDE_FROM_ALL) | 64 | add_subdirectory(SDL EXCLUDE_FROM_ALL) |
| 54 | add_library(SDL2 ALIAS SDL2-static) | 65 | add_library(SDL2 ALIAS SDL2-static) |
| 55 | endif() | 66 | endif() |