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

ruby: use pkg-config to link SDL2 #1189

Merged
merged 1 commit into from
Aug 11, 2023

Conversation

invertego
Copy link
Contributor

Instead of assuming pkg-config is available with bash, test for its presence. This allows the build to function if using bash without pkg-config or using cmd with pkg-config.

Instead of assuming the sdl2-config is available if pkg-config indicates that SDL2 is present, just use pkg-config directly to acquire the compile and link arguments. Again, this allows the build to work with cmd (since sdl2-config is a bash script) and if your copy of SDL2 just didn't come with sdl2-config (for example, from vcpkg).

Instead of assuming pkg-config is available with bash, test for its
presence. This allows the build to function if using bash without
pkg-config or using cmd with pkg-config.

Instead of assuming the sdl2-config is available if pkg-config indicates
that SDL2 is present, just use pkg-config directly to acquire the
compile and link arguments. Again, this allows the build to work with
cmd (since sdl2-config is a bash script) and if your copy of SDL2 just
didn't come with sdl2-config (for example, from vcpkg).
@LukeUsher LukeUsher merged commit 8476c88 into ares-emulator:master Aug 11, 2023
9 checks passed
@invertego invertego deleted the sdl2_pkgconfig branch August 12, 2023 03:15
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