1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-22 13:34:15 +03:00
samba-mirror/rust/nss/build.rs
David Mulder 33bdebb7c8 Enable rust cargo test in Samba make test
Signed-off-by: David Mulder <dmulder@samba.org>
Reviewed-by: Alexander Bokovoy <ab@samba.org>
2024-10-23 14:21:33 +00:00

19 lines
572 B
Rust

fn main() {
if let Some(vers) = version::samba_version_string() {
println!("cargo:rustc-env=CARGO_PKG_VERSION={}", vers);
}
println!(
"cargo:rustc-env=CARGO_PKG_VERSION_MAJOR={}",
version::SAMBA_VERSION_MAJOR
);
println!(
"cargo:rustc-env=CARGO_PKG_VERSION_MINOR={}",
version::SAMBA_VERSION_MINOR
);
println!(
"cargo:rustc-env=CARGO_PKG_VERSION_PATCH={}",
version::SAMBA_VERSION_RELEASE
);
println!("cargo:rustc-env=LD_LIBRARY_PATH=../../bin/shared:../../bin/shared/private/");
}