2022-09-21 11:28:28 +08:00
|
|
|
extern crate embed_resource;
|
2023-09-01 16:12:13 +03:00
|
|
|
use std::fs;
|
2022-09-21 11:28:28 +08:00
|
|
|
|
|
|
|
fn main() {
|
2023-09-02 20:52:07 +03:00
|
|
|
let runner_res_path = "Runner.res";
|
2023-09-01 16:12:13 +03:00
|
|
|
match fs::metadata(runner_res_path) {
|
2023-09-02 20:52:07 +03:00
|
|
|
Ok(_) => println!("cargo:rustc-link-lib=dylib:+verbatim=./libs/portable/Runner.res"),
|
2023-09-01 16:12:13 +03:00
|
|
|
Err(_) => embed_resource::compile("icon.rc", embed_resource::NONE),
|
|
|
|
}
|
2022-09-21 11:28:28 +08:00
|
|
|
}
|