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

Get Include Directory in Dependencies #967

Closed
cwfitzgerald opened this issue Feb 4, 2020 · 0 comments · Fixed by #968
Closed

Get Include Directory in Dependencies #967

cwfitzgerald opened this issue Feb 4, 2020 · 0 comments · Fixed by #968

Comments

@cwfitzgerald
Copy link
Contributor

I have a situation where I have another C dependency that requires use of SDL2. I figured that it would be easy enough to just have my mylib-sys crate have a dependency on sdl2-sys with the bundled SDL2. This would bring sdl2 in for linking on all platforms I care about, and solve the problem of building SDL2. However that code needs the SDL2 headers too.

As of right now, as far as I can tell, there is no way to get an include directory for SDL2 from sdl2-sys. It would be really nice to use the kind of information sharing shown in the cargo docs to pass that information from the sdl2-sys build script to be able to use the include directory provided/found by the crate.

I will be working on a patch to try to add this functionality, which I can PR upstream if there is interest.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants