From 95cf41dc195a94deb9e6abe2dba7b9e35a976791 Mon Sep 17 00:00:00 2001
From: Marko Lindqvist <cazfi74@gmail.com>
Date: Sun, 30 Aug 2026 04:04:16 +0300
Subject: [PATCH 63/63] meson-build_all_installers.sh: Add support for building
 sdl3-installer

Building sdl3-installer requires not-yet-released crosser-2.12,
but existing guis continue to build with crosser-2.11.

See RM #2142

Signed-off-by: Marko Lindqvist <cazfi74@gmail.com>
---
 .../meson-build_all_installers.sh              | 18 +++++++++++++++++-
 1 file changed, 17 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 1d54eae33f..9b818faa63 100755
--- a/platforms/windows/installer_cross/meson-build_all_installers.sh
+++ b/platforms/windows/installer_cross/meson-build_all_installers.sh
@@ -1,6 +1,6 @@
 #!/usr/bin/env bash
 #/***********************************************************************
-# Freeciv - Copyright (C) 2017-2023
+# Freeciv - Copyright (C) 2017-2026
 #   This program is free software; you can redistribute it and/or modify
 #   it under the terms of the GNU General Public License as published by
 #   the Free Software Foundation; either version 2, or (at your option)
@@ -67,6 +67,11 @@ then
   CROSSER_SDL2=yes
 fi
 
+if grep "CROSSER_SDL3" "${DLLSPATH}/crosser.txt" | grep yes > /dev/null
+then
+  CROSSER_SDL3=yes
+fi
+
 if ! "${SRC_DIR}/meson-installer_build.sh" "${DLLSPATH}" gtk3.22 ; then
   RET=1
   GTK322="Fail"
@@ -120,6 +125,16 @@ else
   SDL2="Success"
 fi
 
+# sdl3-client comes with gtk4 modpack installer
+if test "${CROSSER_SDL3}" != "yes" || test "${CROSSER_GTK4}" != "yes" ; then
+  SDL3="N/A"
+elif ! "${SRC_DIR}/meson-installer_build.sh" "${DLLSPATH}" sdl3 ; then
+  RET=1
+  SDL3="Fail"
+else
+  SDL3="Success"
+fi
+
 if test "${CROSSER_QT6}" != "yes" ; then
   RULEDIT="N/A"
 elif ! "${SRC_DIR}/meson-installer_build.sh" "${DLLSPATH}" ruledit ; then
@@ -135,6 +150,7 @@ echo "Gtk4x:   ${GTK4x}"
 echo "Qt6:     ${QT6}"
 echo "Qt6x:    ${QT7}"
 echo "Sdl2:    ${SDL2}"
+echo "Sdl3:    ${SDL3}"
 echo "Ruledit: ${RULEDIT}"
 
 exit ${RET}
-- 
2.53.0

