From 1701dece23d68536a354dad90e2b7dd64e4851c8 Mon Sep 17 00:00:00 2001
From: Marko Lindqvist <cazfi74@gmail.com>
Date: Sun, 4 Jun 2023 12:57:28 +0300
Subject: [PATCH 37/37] installer_cross meson: Disable server build for ruledit

Ruledit installer has no use for the server.

See osdn #48159

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

diff --git a/windows/installer_cross/meson-winbuild.sh b/windows/installer_cross/meson-winbuild.sh
index 49c1bbeb29..91e5887ae5 100755
--- a/windows/installer_cross/meson-winbuild.sh
+++ b/windows/installer_cross/meson-winbuild.sh
@@ -75,7 +75,7 @@ fi
 
 QTPARAMS=""
 
-case $GUI in
+case "$GUI" in
   gtk3.22) FCMP="gtk3"
            RULEDIT=false ;;
   gtk4) FCMP="gtk4"
@@ -102,6 +102,12 @@ if test "$CLIENT" = "" ; then
   CLIENT="$GUI"
 fi
 
+if test "$GUI" = "ruledit" ; then
+  SERVER="disabled"
+else
+  SERVER="enabled"
+fi
+
 BUILD_DIR="meson/build/${SETUP}-${GUI}"
 
 if ! rm -Rf "${BUILD_DIR}" ; then
@@ -149,6 +155,7 @@ if ! meson setup \
      -Dsyslua=false \
      -Dmwand=false \
      -Dreadline=false \
+     -Dserver="$SERVER" \
      -Druledit="$RULEDIT" \
      $QTPARAMS \
      $EXTRA_CONFIG \
-- 
2.39.2