13 lines
387 B
Rust
13 lines
387 B
Rust
|
|
use std::path::PathBuf;
|
||
|
|
|
||
|
|
fn main() {
|
||
|
|
let manifest_dir = std::env::var("CARGO_MANIFEST_DIR").expect("CARGO_MANIFEST_DIR");
|
||
|
|
|
||
|
|
let lib_path = PathBuf::from(&manifest_dir)
|
||
|
|
.parent().expect("crate parent")
|
||
|
|
.parent().expect("workspace parent")
|
||
|
|
.join("lib").join("windows").join("amd64");
|
||
|
|
|
||
|
|
println!("cargo:rustc-link-search=native={}", lib_path.display());
|
||
|
|
}
|