Use cargo as a build system instead of makefiles

This commit is contained in:
2024-02-18 12:36:07 +01:00
parent e3c86e0e37
commit c05f984698
9 changed files with 39 additions and 10 deletions

8
build.rs Normal file
View File

@@ -0,0 +1,8 @@
fn main() {
// https://doc.rust-lang.org/cargo/reference/build-scripts.html
// cargo-equivalent to running rustc -L./raylib/ -lraylib test.rs -o bin/test
// to link against the libraylib.a static library
println!("cargo:rustc-link-search=./raylib");
println!("cargo:rustc-link-lib=static=raylib");
}