Repository navigation
Added Swift package support (PR 3/3) - #16535
Open
jasonbobier wants to merge 72 commits into
Open
jasonbobier wants to merge 72 commits into
jasonbobier wants to merge 72 commits into
Conversation
* Initial macOS support working.
Also renamed C targets.
Fixed test warnings. Added SteamStorage trait.
Renamed SDL3_test. Added macOS audio, camera, and dialog subsystems. Moved the build_config override.
Fixed a couple fo comments.
Added render subsystem.
Some cleanup.
Removed deprecation warnings. Removed src/core/unix from posix. Reworded trait descriptions. Removed unused bundle helpers.
…ation suppressions.
Contributor
Author
|
Looks like my swifty naming of the module doesn't work with the current Xcode builds. Rather than fighting with it, I'll just rename the module (at least for now). Fix upcoming. |
…ld with the package module map.
…n-warnings # Conflicts: # src/notification/cocoa/SDL_cocoanotification.m
# Conflicts: # src/notification/cocoa/SDL_cocoanotification.m
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
This PR along with its two previous (#16300 and #16534) add experimental swift package support to SDL. A goal was to be as full featured as the CMake build and Xcode build combined. The previous PRs contained the non-swiftpm changes that would be beneficial to all builds. This one contains the swift pm changes and makes as few changes to the existing repo as possible.
All tests and examples build and run on macOS (though a few don't really do anything because the mac doesn't have the features). It is possible to get them running on the other OSes as well, but requires some hacking in order to produce app bundles.
Documentation on using it has been added in the usual places under the usual names, but a
swift run testspritewill build the project with default drivers and run the testsprite exe for a quick look. :)NOTE: This PR is stacked on the previous two.