patagia-control/systemd-ipc/build.rs
2025-01-16 10:03:17 +01:00

12 lines
381 B
Rust

extern crate varlink_generator;
use walkdir::WalkDir;
fn main() {
println!("cargo:rerun-if-changed=src/*.varlink");
for entry in WalkDir::new("src").into_iter().filter_map(|e| e.ok()) {
if entry.file_name().to_str().unwrap().ends_with(".varlink") {
varlink_generator::cargo_build_tosource(&entry.path().display().to_string(), true);
}
}
}