Use cargo as a build system instead of makefiles
This commit is contained in:
8
build.rs
Normal file
8
build.rs
Normal 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");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user