jeremyletang / rust-sfml

SFML bindings for Rust
Other
634 stars 88 forks source link

Use `cmake` crate to build SFML via CMake #326

Open ChrisThrasher opened 6 months ago

ChrisThrasher commented 6 months ago

https://crates.io/crates/cmake

There is a CMake crate that can be used to build CMake-based libraries. This would allow for removing all CSFML source code from the repo and will make future updates easier as this repo will no longer have to maintain an in-source fork of the library. It also opens up the possibility of building SFML from source in the build.rs file so that users aren't forced to do that themselves.

crumblingstatue commented 6 months ago

The vendored CSFML is a custom fork tailored for rust-sfml, so there is no intention of removing it.

However, building SFML with CMake might be something worth exploring.