mirror of
https://github.com/yuzu-emu/yuzu-android.git
synced 2024-12-23 17:35:32 +00:00
Only build SDL2 subsystems that we use
While at it, use better way to enable HIDAPI.
This commit is contained in:
parent
648bef235e
commit
fa647cc0b9
13
externals/CMakeLists.txt
vendored
13
externals/CMakeLists.txt
vendored
|
@ -47,9 +47,20 @@ target_include_directories(unicorn-headers INTERFACE ./unicorn/include)
|
||||||
|
|
||||||
# SDL2
|
# SDL2
|
||||||
if (NOT SDL2_FOUND AND ENABLE_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_STATIC ON)
|
||||||
set(SDL_SHARED OFF)
|
set(SDL_SHARED OFF)
|
||||||
set(OPT_DEF_HIDAPI ON)
|
option(HIDAPI "" ON)
|
||||||
|
|
||||||
add_subdirectory(SDL EXCLUDE_FROM_ALL)
|
add_subdirectory(SDL EXCLUDE_FROM_ALL)
|
||||||
add_library(SDL2 ALIAS SDL2-static)
|
add_library(SDL2 ALIAS SDL2-static)
|
||||||
endif()
|
endif()
|
||||||
|
|
Loading…
Reference in a new issue