From 674ce7ced7e133f45da7342e72cac5d5d6229890 Mon Sep 17 00:00:00 2001
From: Marko Lindqvist <cazfi74@gmail.com>
Date: Fri, 21 Aug 2026 02:05:47 +0300
Subject: [PATCH 31/31] meson-build_all_installers.sh: Respect crosser.txt
 CROSSER_SDL2

See RM #2143

Signed-off-by: Marko Lindqvist <cazfi74@gmail.com>
---
 .../windows/installer_cross/meson-build_all_installers.sh  | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/platforms/windows/installer_cross/meson-build_all_installers.sh b/platforms/windows/installer_cross/meson-build_all_installers.sh
index abf094ae8a..42b0bf78b0 100755
--- a/platforms/windows/installer_cross/meson-build_all_installers.sh
+++ b/platforms/windows/installer_cross/meson-build_all_installers.sh
@@ -51,6 +51,11 @@ then
   CROSSER_QT6=yes
 fi
 
+if grep "CROSSER_SDL2" "${DLLSPATH}/crosser.txt" | grep yes > /dev/null
+then
+  CROSSER_SDL2=yes
+fi
+
 if ! ./meson-installer_build.sh "${DLLSPATH}" gtk3.22 ; then
   RET=1
   GTK322="Fail"
@@ -77,7 +82,7 @@ else
 fi
 
 # sdl2-client comes with gtk4 modpack installer
-if test "${CROSSER_GTK4}" != "yes" ; then
+if test "${CROSSER_SDL2}" != "yes" || test "${CROSSER_GTK4}" != "yes" ; then
   SDL2="N/A"
 elif ! ./meson-installer_build.sh "${DLLSPATH}" sdl2 ; then
   RET=1
-- 
2.53.0

