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

Move ffi into sys, update bindgen, build.rs and update to sdl2.0.8 #782

Merged
merged 21 commits into from
Jul 8, 2018

Conversation

Cobrand
Copy link
Member

@Cobrand Cobrand commented Jul 8, 2018

Closes #765 (already merged with this branch).
Closes #777 (fix)

jonemil and others added 21 commits April 1, 2018 23:34
Closes #744

Defines were not set correctly as target matching was wrong.
Removed hide_type deprecated binding builder method use, in favor of
blacklist_type.
Added rustified_enum call, since newer bindgen versions will make
constants instead of enums breaking the sdl2-sys crate.

Bindings were regenerated using the following command:
cargo build --features bindgen
The 'mixer' feature is re-exported so compiling without it will leave
out the mixer function definitions in sdl2-sys crate as well.
Progresses on #647
I'm not sure if this is the intended way of using bindgen, but the
SDL_image bindings now piggy-back on the core SDL bindings by
blacklisting some types that gets dragged into the image module.
The solution probably does not scale, but it might be preferable to have
autoupdateable bindings rather than having to do it manually.

Progresses on #647
 Had to change some mutability of some raw pointers used, but the ttf
 demo seem to work.

 Progresses on #647
Renamed the binding files to be consistent.
The build script could probably benefit from a good cleanup.
Closes #647
It should now be what the old behaviour was. If either mac_framework
or use_mac_framework feature is set then it will use kind=framework, if
not then it will use normal library name link argument.
@Cobrand Cobrand merged commit 97e1f79 into master Jul 8, 2018
@Cobrand
Copy link
Member Author

Cobrand commented Jul 8, 2018

@bgourlie It should be fine, but would you mind testing master now that it's been merged? This branch should solve all your issues. Thanks!

@bgourlie
Copy link
Contributor

bgourlie commented Jul 8, 2018 via email

@bgourlie
Copy link
Contributor

I just tested the HEAD revision on master and everything appears to be working fine for my particular application.

sypwex pushed a commit to sypwex/rust-sdl2 that referenced this pull request Jun 2, 2024
Move ffi into sys, update bindgen, build.rs and update to sdl2.0.8
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.

Build fails on linux with 'error: ‘SIO_DEVANY’ undeclared'
3 participants