Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update to latest SDL for macOS/Windows builds #783

Merged
merged 20 commits into from
Sep 12, 2022

Conversation

Daft-Freak
Copy link
Collaborator

This started as an attempt to work around build failures on macOS, then turned into "I wonder if I can clean this up by updating"... and then resulted in android boilerplate for some reason.

First three are fixes and could be split if we just want fixes for now. Then, macOS/Windows (VS+MinGW) SDL versions are updated which allows some simplification as they both support find_package now.

There's some cleanup to make macOS frameworks slightly less special, the VS script doesn't create two copies of the headers/libs and the MinGW script no longer needs to patch the config.

2c89fb1 and 96a175f allow including SDL sources before the SDK, which is handy for platforms that don't have a prebuilt version available.

Oh, and I actually updated the docs this time. (Fixing the SDL download links as well)

(Probably replaces #483)

It's an empty library on macOS anyway
All we needed to do was specify where they were...
The frameworks now have a cmake config
This will allow using find_package
We now find them where they're extracted
VS is going through the config path now
The old check was used for the macOS framework workaround, which was removed. This check should allow including a local copy of SDL2
I don't think anyone is using the android support, and this requires manually prebuilding the libs multiple times.

Instead, you can include SDL in a subdir (add_subdirectory) or use FetchContent. (Now that we have the right checks)
@Gadgetoid Gadgetoid merged commit d580ae3 into 32blit:master Sep 12, 2022
@Gadgetoid
Copy link
Contributor

Awesome stuff, thank you!

@Daft-Freak Daft-Freak deleted the latest-sdl branch September 12, 2022 15:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants