diff options
author | Morph <39850852+Morph1984@users.noreply.github.com> | 2021-05-16 10:05:42 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-05-16 10:05:42 +0200 |
commit | 9edfd88a8a4244848ae564749d591903699f9946 (patch) | |
tree | 18bd4e2942e316dbc6433f3e29e893ccda190a98 /externals | |
parent | Merge pull request #6316 from ameerj/title-fix (diff) | |
parent | Only build SDL2 subsystems that we use (diff) | |
download | yuzu-9edfd88a8a4244848ae564749d591903699f9946.tar yuzu-9edfd88a8a4244848ae564749d591903699f9946.tar.gz yuzu-9edfd88a8a4244848ae564749d591903699f9946.tar.bz2 yuzu-9edfd88a8a4244848ae564749d591903699f9946.tar.lz yuzu-9edfd88a8a4244848ae564749d591903699f9946.tar.xz yuzu-9edfd88a8a4244848ae564749d591903699f9946.tar.zst yuzu-9edfd88a8a4244848ae564749d591903699f9946.zip |
Diffstat (limited to 'externals')
-rw-r--r-- | externals/CMakeLists.txt | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/externals/CMakeLists.txt b/externals/CMakeLists.txt index e280e53d7..fe1c088ca 100644 --- a/externals/CMakeLists.txt +++ b/externals/CMakeLists.txt @@ -47,8 +47,20 @@ 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() + set(SDL_STATIC ON) set(SDL_SHARED OFF) + option(HIDAPI "" ON) + add_subdirectory(SDL EXCLUDE_FROM_ALL) add_library(SDL2 ALIAS SDL2-static) endif() |