From 417ee157c1e78d01b592e69695bf185d14f8c348 Mon Sep 17 00:00:00 2001 From: Marko Lindqvist Date: Tue, 21 Jun 2022 06:23:11 +0300 Subject: [PATCH 53/53] installer_cross: Add meson-build_all_installers.sh See osdn #44805 Signed-off-by: Marko Lindqvist --- .../meson-build_all_installers.sh | 69 +++++++++++++++++++ 1 file changed, 69 insertions(+) create mode 100755 windows/installer_cross/meson-build_all_installers.sh diff --git a/windows/installer_cross/meson-build_all_installers.sh b/windows/installer_cross/meson-build_all_installers.sh new file mode 100755 index 0000000000..aa4526f0f5 --- /dev/null +++ b/windows/installer_cross/meson-build_all_installers.sh @@ -0,0 +1,69 @@ +#!/bin/bash +#/*********************************************************************** +# Freeciv - Copyright (C) 2017-2022 +# 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) +# any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +#***********************************************************************/ + +if test "$1" = "" || test "$1" = "-h" || test "$1" = "--help" ; then + USAGE_NEEDED=yes +fi + +if test "$2" != "snapshot" && test "$2" != "release" ; then + USAGE_NEEDED=yes +fi + +if test "$USAGE_NEEDED" = "yes" ; then + echo "Usage: $0 " + exit 1 +fi + +DLLSPATH="$1" +export INST_CROSS_MODE="$2" + +if ! test -d "$DLLSPATH" ; then + echo "Dllstack directory \"$DLLSPATH\" not found!" >&2 + exit 1 +fi + +if ! test -f "$DLLSPATH/crosser.txt" ; then + echo "Directory \"$DLLSPATH\" does not look like crosser environment!" >&2 + exit 1 +fi + +RET=0 + +if grep "CROSSER_GTK4" "$DLLSPATH/crosser.txt" | grep yes > /dev/null +then + CROSSER_GTK4=yes +fi + +if ! ./meson-installer_build.sh "$DLLSPATH" gtk3.22 ; then + RET=1 + GTK322="Fail" +else + GTK322="Success" +fi + +# sdl2-client comes with gtk4 modpack installer +if test "$CROSSER_GTK4" != "yes" ; then + SDL2="N/A" +elif ! ./meson-installer_build.sh "$DLLSPATH" sdl2 ; then + RET=1 + SDL2="Fail" +else + SDL2="Success" +fi + +echo "Gtk3.22: $GTK322" +echo "Sdl2: $SDL2" + +exit $RET -- 2.35.1