1
0
Fork 0
mirror of https://git.sr.ht/~asya/copycat synced 2024-09-27 22:08:31 +00:00
copycat/build.rs
2023-10-08 17:50:05 +03:00

14 lines
387 B
Rust

use std::process::Command;
fn main() {
// Tell Cargo that if the given file changes, to rerun this build script.
println!("cargo:rerun-if-changed=crabbios/crabbios.asm");
Command::new("nasm")
.arg("crabbios/crabbios.asm")
.args(["-f", "bin"])
.args(["-o", "roms/crabbios.bin"])
.args(["-I", "crabbios"])
.spawn()
.unwrap();
}