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

support linking to libraries from a vcpkg installation #1009

Merged
merged 3 commits into from
Jun 14, 2020

Conversation

mcgoo
Copy link
Contributor

@mcgoo mcgoo commented Jun 11, 2020

I'm not sure if you are interested in merging this but I thought it might be useful. It allows building static binaries with dynamic libc/crt on macOS, Linux and Windows. (There are other configurations available on Windows - fully static and fully dynamic.) The workflow is the same on each of the three operating systems above. This should be enough to get it going in a rust-sdl2 checkout:

cargo install cargo-vcpkg
cargo vcpkg build
cargo test --features "use-vcpkg static-link gfx image ttf mixer"

@Cobrand
Copy link
Member

Cobrand commented Jun 11, 2020

That looks great, I'll test it later. Although perhaps a mention in the README on how to use this feature is necessary? I can see people not knowing they have to do cargo install cargo-vcpkg and cargo vcpkg build.

@Cobrand
Copy link
Member

Cobrand commented Jun 14, 2020

Thanks a lot!

@Cobrand Cobrand merged commit cf8c382 into Rust-SDL2:master Jun 14, 2020
sypwex pushed a commit to sypwex/rust-sdl2 that referenced this pull request Jun 2, 2024
support linking to libraries from a vcpkg installation
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