Files
snespatcher/build.rs
T

16 lines
499 B
Rust
Raw Normal View History

2021-06-27 16:42:21 -04:00
use std::process::Command;
fn main() {
2026-08-26 21:33:44 -04:00
println!("cargo:rerun-if-changed=resources/resources.xml");
println!("cargo:rerun-if-changed=resources/style.css");
println!("cargo:rerun-if-changed=resources/appmenu.xml");
2021-06-27 16:42:21 -04:00
2026-08-26 21:33:44 -04:00
let status = Command::new("glib-compile-resources")
.arg("resources.xml")
.current_dir("resources")
.status()
.expect("failed to run glib-compile-resources");
assert!(status.success(), "failed to compile application resources");
2021-06-27 16:42:21 -04:00
}