-
Notifications
You must be signed in to change notification settings - Fork 4
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
Using sdl3-sys to provide SDL3 headers/library #14
Comments
You can get this via the I could add this to |
Yes, this works. I had to add sdl3-src as a build-dependency, and then I could add |
Happy that works for you ^^ By the way, if you're using the build-from-source feature of sdl3-sys, it does set the environment variables |
Understood thanks. Sorry I have one more question, I'm not sure if it is a bug or not. I get this failure on Windows:
Is the Microsoft GDK required to build SDL3? I didn't enable the |
No, GDK isn't supposed to be required. SDL should detect if it's available when cmake is run and disable it if it isn't. The Does this also happen if you build SDL with cmake the normal way, or does it only happen when it's built through sdl3-sys? |
Sorry I think it is something wrong with the GitHub actions Windows runner (actions/runner-images#10980 (comment)). When I switched to the windows-2025 image the problem went away |
Would it be possible to implement this features?
https://github.com/Rust-SDL2/rust-sdl2?tab=readme-ov-file#using-sdl2-sys-to-provide-sdl2-headerslibrary
Rust-SDL2/rust-sdl2#968
This would allow using SDL.h in C projects that are built along with the project
The text was updated successfully, but these errors were encountered: