mirror of
https://github.com/samba-team/samba.git
synced 2024-12-22 13:34:15 +03:00
33bdebb7c8
Signed-off-by: David Mulder <dmulder@samba.org> Reviewed-by: Alexander Bokovoy <ab@samba.org>
19 lines
572 B
Rust
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/");
|
|
}
|