1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-22 13:34:15 +03:00
samba-mirror/rust/build.rs
David Mulder d100aaf4bf Fetch the target join os via std::env::consts
Signed-off-by: David Mulder <dmulder@samba.org>
Reviewed-by: Alexander Bokovoy <ab@samba.org>
2024-10-23 14:21:34 +00:00

20 lines
495 B
Rust

use std::env;
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
);
}