Commit Graph

20 Commits

Author SHA1 Message Date
unknown
a926989d44 Update to SDL 2.30.12
Remove broken Windows HDPI support

Fix submodule?

try to fix CI

Add some missing files

Update to SDL2 2.30.12

Include khronos headers

Enable EGL on macOS

Enable GLES on Mac
2025-02-07 09:28:43 -08:00
Josh Tynjala
55ca39da44 slightly different compiler flags with Raspberry Pi ARM64 2023-03-01 15:55:55 -08:00
Joseph Cloutier
16166e1a0d Fix RPI compile errors (incomplete).
At least, these changes should be a step in the right direction.
2022-05-28 14:55:50 -04:00
Joseph Cloutier
088b43a37a Don't compile joystick HIDAPI code on iOS.
Per README-ios.md and SDL_config_iphoneos.h, it's disabled by default.
2022-05-28 08:34:04 -04:00
Joseph Cloutier
821638ae34 Work around inconsistent header inclusion.
Overriding headers has always been risky, and finally we see why.

Apparently on iOS, files may be compiled in such a way that the original
SDL_config.h file is included, not Lime's custom one. It's hard to do
anything more than we've already done to manage include order, so we
need to find another option.

One such option is to make the two files as similar as possible, such
that it usually doesn't matter which one ends up being included. Then we
only set `USING_GENERATED_CONFIG_H` when it really matters.
2022-05-27 03:59:43 -04:00
Joseph Cloutier
03f5dcbf82 Don't enable ARC twice.
If `OBJC_ARC` is set, then `-fobjc-arc` was also set already.
2022-05-27 03:29:07 -04:00
Joseph Cloutier
9d56c6df4a Enable ARC when compiling SDL.
SDL_cocoavideo.m now enforces this, as of this commit:
ec8fa57750

That commit also removed the destructors from SDL_render_metal.m, which
implies it's required on iOS too.

And before anyone asks, SDL seems to have no plans to back down on this.
2022-05-26 21:13:49 -04:00
Joseph Cloutier
45d104d105 Disable HIDAPI on all targets again.
This reverts commit 41d93722f9.
2022-05-25 18:25:47 -04:00
Joseph Cloutier
87e779b971 Rename "overrides" to "custom."
This helps shift the emphasis from "replacing existing files" to "adding
missing files," without ruling either option out.
2022-05-22 23:27:47 -04:00
Joseph Cloutier
41d93722f9 Temporarily re-enable HIDAPI on iOS.
This can be undone once https://github.com/libsdl-org/SDL/issues/5699
gets resolved.
2022-05-21 15:52:49 -04:00
Joseph Cloutier
104533fdde Sort and format build files. 2022-05-20 17:11:20 -04:00
Joseph Cloutier
11821e52dd Add more missing files. 2022-05-20 16:53:24 -04:00
Joseph Cloutier
a378f12607 Fix references to missing files. 2022-05-20 16:16:26 -04:00
Joseph Cloutier
c37e48faaf Disable HIDAPI.
Problem one: it requires its own binary, which we haven't built. There
are instructions in sdl/src/hidapi/README.txt, if we ever want to try.

Problem two: the Android app segfaults when `hid_init()` calls
`g_JVM->AttachCurrentThread()`. This might be a bug in NDK 21's jni.h,
but that seems unlikely. Perhaps a version mismatch?

In any case, we aren't using the code at the moment, so the easy answer
is to leave it out.
2022-05-20 01:00:35 -04:00
Joseph Cloutier
d21847e65c Update SDL to 2.0.22.
On Android, `SDL_RWops` no longer stores a plain file descriptor,
so the `AAsset` API must be used instead:
https://developer.android.com/ndk/reference/group/asset

`HAVE_INOTIFY` is required on Linux at the moment, but the bug will be
fixed in the next SDL release.
2022-05-19 17:34:20 -04:00
Joseph Cloutier
2e645678a0 Attempt to resolve Windows-specific errors.
alfstream.cpp doesn't look like a Windows-specific file, so I'd rather
compile it everywhere until proven Windows-specific. Even though Mac and
Linux have been doing ok without it so far.
2022-05-16 18:55:33 -04:00
Joseph Cloutier
2dc827a432 Remove PulseAudio headers.
These are often included with the OS, or can easily be installed if not.
2022-05-16 14:10:20 -04:00
Joseph Cloutier
b63c054fab Add PulseAudio headers.
PulseAudio v15.99.1
2022-05-16 02:23:09 -04:00
Joseph Cloutier
f200ecd9ca Use the official SDL repo as a submodule.
Continuing to use version 2.0.12 for now.

Missing changes:
370d05558c
e572215f5a
fa51fcb56b

Notes:
The changes in e572215 will be included when we update SDL.
The files.xml change from fa51fcb is actually included.
https://github.com/kcat/openal-soft/pull/227 is not resolved.
2022-05-12 23:17:16 -04:00
Joseph Cloutier
bc584ea611 Remove hxcpp build files from submodules. 2022-05-06 19:41:31 -04:00