mirror of
https://github.com/mii443/openvr-sys.git
synced 2025-08-22 16:15:36 +00:00
9 lines
303 B
Rust
9 lines
303 B
Rust
fn main() {
|
|
let path = std::path::PathBuf::from("src");
|
|
let b = autocxx_build::Builder::new("src/lib.rs", [&path]);
|
|
b.extra_clang_args(&["-std=c++14"]).build().unwrap().compile("openvr");
|
|
|
|
println!("cargo:rerun-if-changed=src/lib.rs");
|
|
println!("cargo:rustc-link-lib=openvr_api");
|
|
}
|