inno-updater/build.rs

18 строки
444 B
Rust
Исходник Обычный вид История

use std::process::Command;
fn main() {
2018-06-10 19:17:50 +03:00
let mut rc = Command::new(".\\tools\\rc.exe")
2018-07-03 13:27:44 +03:00
.arg("/r")
.arg("/fo")
.arg(".\\resources\\resources.lib")
.arg(".\\resources\\resources.rc")
.spawn()
.expect("Failed to spawn resource compiler");
2018-07-03 13:27:44 +03:00
let ecode = rc.wait().expect("Failed to wait on resource compiler");
2018-06-10 19:17:50 +03:00
assert!(ecode.success(), "Resource compiler failed");
2018-06-10 19:17:50 +03:00
println!("cargo:rustc-link-lib=static=.\\resources\\resources");
2018-07-03 13:27:44 +03:00
}