mirror of
https://github.com/zerotier/ZeroTierOne.git
synced 2025-04-26 17:03:43 +02:00
15 lines
493 B
Rust
15 lines
493 B
Rust
#[allow(unused_assignments)]
|
|
#[allow(unused_mut)]
|
|
fn main() {
|
|
let d = env!("CARGO_MANIFEST_DIR");
|
|
println!("cargo:rustc-link-search=native={}/../build/core", d);
|
|
println!("cargo:rustc-link-search=native={}/../build/osdep", d);
|
|
println!("cargo:rustc-link-lib=static=zt_core");
|
|
println!("cargo:rustc-link-lib=static=zt_osdep");
|
|
|
|
let mut cpplib = "c++";
|
|
#[cfg(target_os = "linux")] {
|
|
cpplib = "stdc++";
|
|
}
|
|
println!("cargo:rustc-link-lib={}", cpplib);
|
|
}
|