mirror of
https://github.com/feschber/lan-mouse.git
synced 2026-03-07 11:59:59 +03:00
24 lines
577 B
Rust
24 lines
577 B
Rust
use std::process::Command;
|
|
|
|
fn main() {
|
|
// commit hash
|
|
let git_describe = Command::new("git")
|
|
.arg("describe")
|
|
.arg("--always")
|
|
.arg("--dirty")
|
|
.arg("--tags")
|
|
.output()
|
|
.unwrap();
|
|
|
|
let git_describe = String::from_utf8(git_describe.stdout).unwrap();
|
|
println!("cargo::rustc-env=GIT_DESCRIBE={git_describe}");
|
|
|
|
// composite_templates
|
|
#[cfg(feature = "gtk")]
|
|
glib_build_tools::compile_resources(
|
|
&["resources"],
|
|
"resources/resources.gresource.xml",
|
|
"lan-mouse.gresource",
|
|
);
|
|
}
|