CMakeLists.txt: add src/joystick/iphoneos/*.m to Darwin joystick sources

.. so that there won't be missing symbols.
TODO: add checks for SDL_JOYSTICK_MFI ???
This commit is contained in:
Ozkan Sezer 2020-11-24 14:10:30 +03:00
parent 7a05dbf4b9
commit 711d409032
1 changed files with 2 additions and 0 deletions

View File

@ -1652,6 +1652,8 @@ elseif(APPLE)
set(HAVE_SDL_SENSORS 1) set(HAVE_SDL_SENSORS 1)
else() else()
file(GLOB JOYSTICK_SOURCES ${SDL2_SOURCE_DIR}/src/joystick/darwin/*.c) file(GLOB JOYSTICK_SOURCES ${SDL2_SOURCE_DIR}/src/joystick/darwin/*.c)
file(GLOB JOYSTICK_SOURCES ${SDL2_SOURCE_DIR}/src/joystick/iphoneos/*.m)
# FIXME: add checks for SDL_JOYSTICK_MFI???
set(SDL_JOYSTICK_IOKIT 1) set(SDL_JOYSTICK_IOKIT 1)
set(SDL_FRAMEWORK_IOKIT 1) set(SDL_FRAMEWORK_IOKIT 1)
set(SDL_FRAMEWORK_FF 1) set(SDL_FRAMEWORK_FF 1)