summaryrefslogtreecommitdiffstats
path: root/externals/CMakeLists.txt
diff options
context:
space:
mode:
authorv1993 <v19930312@gmail.com>2021-05-09 17:58:16 +0200
committerv1993 <v19930312@gmail.com>2021-05-10 00:11:54 +0200
commitfa647cc0b90f74116f5318eba6307466da3964ef (patch)
tree30a564aa16fd452bba020a0c77d61ca89eef652d /externals/CMakeLists.txt
parentOn Linux, build SDL2 from externals with HIDAPI support (diff)
downloadyuzu-fa647cc0b90f74116f5318eba6307466da3964ef.tar
yuzu-fa647cc0b90f74116f5318eba6307466da3964ef.tar.gz
yuzu-fa647cc0b90f74116f5318eba6307466da3964ef.tar.bz2
yuzu-fa647cc0b90f74116f5318eba6307466da3964ef.tar.lz
yuzu-fa647cc0b90f74116f5318eba6307466da3964ef.tar.xz
yuzu-fa647cc0b90f74116f5318eba6307466da3964ef.tar.zst
yuzu-fa647cc0b90f74116f5318eba6307466da3964ef.zip
Diffstat (limited to 'externals/CMakeLists.txt')
-rw-r--r--externals/CMakeLists.txt13
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)
# 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)
- set(OPT_DEF_HIDAPI ON)
+ option(HIDAPI "" ON)
+
add_subdirectory(SDL EXCLUDE_FROM_ALL)
add_library(SDL2 ALIAS SDL2-static)
endif()