WIP: multi-platform builds pipeline

This commit is contained in:
2026-02-26 18:54:01 +01:00
parent 47099a6eef
commit f618f47811
16 changed files with 1097 additions and 247 deletions

View File

@@ -1,6 +1,15 @@
//! Build script — embeds Windows application resources (icon, metadata).
fn main() {
let target_os = std::env::var("CARGO_CFG_TARGET_OS").unwrap_or_default();
if target_os == "windows" {
// rusty_link's build.rs only links stdc++ on linux — add it for windows too
println!("cargo:rustc-link-lib=stdc++");
println!("cargo:rustc-link-lib=ws2_32");
println!("cargo:rustc-link-lib=iphlpapi");
}
#[cfg(windows)]
{
let mut res = winres::WindowsResource::new();