2024-01-16 09:41:00 +03:00
|
|
|
fn main() {
|
2024-01-17 01:00:02 +03:00
|
|
|
println!("cargo:rustc-link-search=.");
|
|
|
|
println!("cargo:rerun-if-changed=libbcachefs.a");
|
2024-01-16 09:41:00 +03:00
|
|
|
println!("cargo:rustc-link-lib=static:+whole-archive=bcachefs");
|
|
|
|
|
|
|
|
println!("cargo:rustc-link-lib=urcu");
|
|
|
|
println!("cargo:rustc-link-lib=zstd");
|
|
|
|
println!("cargo:rustc-link-lib=blkid");
|
|
|
|
println!("cargo:rustc-link-lib=uuid");
|
|
|
|
println!("cargo:rustc-link-lib=sodium");
|
|
|
|
println!("cargo:rustc-link-lib=z");
|
|
|
|
println!("cargo:rustc-link-lib=lz4");
|
|
|
|
println!("cargo:rustc-link-lib=zstd");
|
|
|
|
println!("cargo:rustc-link-lib=udev");
|
|
|
|
println!("cargo:rustc-link-lib=keyutils");
|
|
|
|
println!("cargo:rustc-link-lib=aio");
|
|
|
|
|
|
|
|
if std::env::var("BCACHEFS_FUSE").is_ok() {
|
|
|
|
println!("cargo:rustc-link-lib=fuse3");
|
|
|
|
}
|
|
|
|
}
|