1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-06 13:18:07 +03:00
samba-mirror/rust/build.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

20 lines
495 B
Rust
Raw Normal View History

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
);
}