patch: disable gamecontroller and corehaptic for sdl2

This commit is contained in:
alexey.lysiuk 2021-12-04 15:13:02 +02:00
parent aa6ed829d5
commit 86d1731e1f
2 changed files with 12 additions and 1 deletions

View file

@ -458,7 +458,7 @@ class Sdl2Target(CMakeStaticDependencyTarget):
state.download_source( state.download_source(
'https://libsdl.org/release/SDL2-2.0.18.tar.gz', 'https://libsdl.org/release/SDL2-2.0.18.tar.gz',
'94d40cd73dbfa10bb6eadfbc28f355992bb2d6ef6761ad9d4074eff95ee5711c', '94d40cd73dbfa10bb6eadfbc28f355992bb2d6ef6761ad9d4074eff95ee5711c',
patches='sdl2-no-updaterev') patches=('sdl2-no-updaterev', 'sdl2-no-gamecontroller+corehaptic'))
FRAMEWORKS = '-framework AudioToolbox -framework AVFoundation -framework Carbon' \ FRAMEWORKS = '-framework AudioToolbox -framework AVFoundation -framework Carbon' \
' -framework Cocoa -framework CoreAudio -framework CoreVideo -framework ForceFeedback' \ ' -framework Cocoa -framework CoreAudio -framework CoreVideo -framework ForceFeedback' \

View file

@ -0,0 +1,11 @@
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -1860,7 +1860,7 @@
#import <Foundation/Foundation.h>
#import <CoreHaptics/CoreHaptics.h>
int main() {}" HAVE_FRAMEWORK_COREHAPTICS)
- if(HAVE_FRAMEWORK_GAMECONTROLLER AND HAVE_FRAMEWORK_COREHAPTICS)
+ if(0)
# Only enable MFI if we also have CoreHaptics to ensure rumble works
set(SDL_JOYSTICK_MFI 1)
set(SDL_FRAMEWORK_GAMECONTROLLER 1)