1
0
Fork 0
forked from wry/wry
wry/build/vulkan.rs
2025-09-17 14:23:38 +02:00

20 lines
476 B
Rust

use {anyhow::bail, std::process::Command};
pub fn main() -> anyhow::Result<()> {
if !std::fs::exists("compile-shaders")? {
return Ok(());
}
let code = Command::new("cargo")
.args([
"run",
"--manifest-path",
"compile-shaders/Cargo.toml",
"-p",
"compile-shaders-build-rs",
])
.status()?;
if !code.success() {
bail!("compile-shaders failed");
}
Ok(())
}