12 lines
315 B
Rust
12 lines
315 B
Rust
use std::path::PathBuf;
|
|
|
|
fn main() {
|
|
println!("cargo:rerun-if-changed=build.rs");
|
|
|
|
let root = PathBuf::from(std::env::var("CARGO_MANIFEST_DIR").unwrap());
|
|
|
|
let def = root.join("proxy.def");
|
|
println!("cargo:rustc-link-lib=dylib=d3d11");
|
|
println!("cargo:rustc-link-arg=/def:{}", def.display());
|
|
}
|