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

Allow sdl2-sys to build for windows-gnu target #763

Merged
merged 1 commit into from
Mar 31, 2018

Conversation

manpat
Copy link
Contributor

@manpat manpat commented Mar 24, 2018

Had to make a few small changes to the sdl2-sys build.rs to get linux-windows cross compilation working on my machine.

I'm not sure if outright disabling the GLES subsystem is acceptable but I know that by default, mingw doesn't come with GLES or EGL headers. So if you try building SDL from source without disabling it, it fails.

I noticed that SDL can provide it's own GLES headers but as far as I could tell they're only used if _MSC_VER is defined, and I figured defining that for a non-msvc target might be a bad idea.

@Cobrand
Copy link
Member

Cobrand commented Mar 31, 2018

Looks good to me!

Although I can't test on windows-msvc or windows-gnu, I'm sure that by merging this into master someone will notice an issue soon enough if that PR breaks anything!

@Cobrand Cobrand merged commit 58d6e17 into Rust-SDL2:master Mar 31, 2018
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