aedi: remove obsolete sdl2 patch

clang from xcode 15 drops support for macos sdk older than 11.3 to build c++ code, it cannot locate standard library headers anymore
without ability to use older macos sdks, it doesn't make any sense to disable gamecontroller and corehaptic support
This commit is contained in:
alexey.lysiuk 2023-11-03 13:18:37 +02:00
parent 9d67d1d969
commit a79b497900
2 changed files with 1 additions and 13 deletions

View file

@ -270,8 +270,7 @@ class Sdl2Target(base.CMakeStaticDependencyTarget):
def prepare_source(self, state: BuildState):
state.download_source(
'https://github.com/libsdl-org/SDL/releases/download/release-2.28.4/SDL2-2.28.4.tar.gz',
'888b8c39f36ae2035d023d1b14ab0191eb1d26403c3cf4d4d5ede30e66a4942c',
patches='sdl2-no-gamecontroller+corehaptic')
'888b8c39f36ae2035d023d1b14ab0191eb1d26403c3cf4d4d5ede30e66a4942c')
def configure(self, state: BuildState):
opts = state.options

View file

@ -1,11 +0,0 @@
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -2072,7 +2072,7 @@
#import <Foundation/Foundation.h>
#import <CoreHaptics/CoreHaptics.h>
int main() { return 0; }" 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)