patagia-control/internal/build.rs
2025-01-15 15:03:23 +01:00

12 lines
365 B
Rust

extern crate varlink_generator;
use walkdir::WalkDir;
fn main() {
// walk dir to find varlink files
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);
}
}
}