rust-raylib-playground/build.rs

9 lines
321 B
Rust
Raw Normal View History

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");
}