From 3ef2f652c3b8d047f775701abae5089224014faf Mon Sep 17 00:00:00 2001 From: biroder <107300789+biroder@users.noreply.github.com> Date: Mon, 23 Dec 2024 11:50:21 +0200 Subject: [PATCH] Fix of the last fix MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit … --- build.rs | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/build.rs b/build.rs index e0f16ee..df14ab8 100644 --- a/build.rs +++ b/build.rs @@ -9,6 +9,7 @@ fn main() { println!("cargo:rerun-if-changed=build.rs"); + #[cfg(target_os = "windows")] if target.contains("windows") { let mut res = winres::WindowsResource::new(); res.set_icon("res/sue.ico"); @@ -19,13 +20,17 @@ fn main() { println!("cargo:rustc-link-arg=/FORCE:MULTIPLE"); println!("cargo:rustc-link-lib=shlwapi"); } - } else if target.contains("darwin") { + } + + if target.contains("darwin") { println!("cargo:rustc-env=MACOSX_DEPLOYMENT_TARGET=10.15"); println!("cargo:rustc-link-arg=-weak_framework"); println!("cargo:rustc-link-arg=GameController"); println!("cargo:rustc-link-arg=-weak_framework"); println!("cargo:rustc-link-arg=CoreHaptics"); - } else if target.contains("android") { + } + + if target.contains("android") { println!("cargo:rustc-link-lib=dylib=GLESv2"); println!("cargo:rustc-link-lib=dylib=EGL"); }