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

Make macOS SDL build portable, build script runnable locally #1393

Merged
merged 1 commit into from
Mar 27, 2024

Conversation

jcm93
Copy link
Contributor

@jcm93 jcm93 commented Feb 14, 2024

Resubmission of #1389 with improvements.

Now the SDL build script will not call xcode-select, which can have undesired effects on the user build environment, unless it is on CI (detected with the $GITHUB_ACTIONS env var).

It will also not call cmake --install ., which would previously replace the user's SDL installation.

This second change required some minor changes to ruby's makefile. We now include the header directory from the cloned SDL source, and inform the linker correctly of the location of the SDL .dylib.

Also added the cloned SDL repository and .dylib to the .gitignore for easier development workflow.

To ensure compatibility with #1390, the MACOS_COMPILED_SDL flag is added so we can include the proper "SDL.h" header for compiled builds and <SDL2/SDL.h> header for system builds.

@jcm93 jcm93 force-pushed the sdllocal branch 2 times, most recently from cd00b2c to b6a3810 Compare February 14, 2024 02:25
@jcm93
Copy link
Contributor Author

jcm93 commented Mar 5, 2024

Noticed an issue with this while fixing something else (was linking SDL even if sdl2=false). If there's other issues with this let me know!

@LukeUsher LukeUsher merged commit 571832a into ares-emulator:master Mar 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants