From c0548cbbdf357b333ca37f502a90bf8e29e1e75e Mon Sep 17 00:00:00 2001 From: Marko Lindqvist Date: Sun, 11 Jun 2023 17:43:13 +0300 Subject: [PATCH 29/29] Msys2: Build Qt5 based installers for clang32 Msys2 clang32 system does not have Qt6. Build Qt5 based client and ruledit installers there instead of Qt6 ones. See osdn #48209 Signed-off-by: Marko Lindqvist --- windows/installer_msys2/Makefile.autotools | 4 ++-- windows/installer_msys2/Makefile.meson | 12 +++++++++--- 2 files changed, 11 insertions(+), 5 deletions(-) diff --git a/windows/installer_msys2/Makefile.autotools b/windows/installer_msys2/Makefile.autotools index 817b34c9b9..ff3f6e8c05 100644 --- a/windows/installer_msys2/Makefile.autotools +++ b/windows/installer_msys2/Makefile.autotools @@ -105,8 +105,8 @@ all-win32+: make -f $(MAKEFILE_NAME) GUI=gtk3.22 CLIENT=gtk3.22 FCMP=gtk3 EXTRA_CONFIG="--disable-ruledit CFLAGS=\"-Wno-cast-align $$CFLAGS\" $(EXTRA_CONFIG)" install-freeciv-gtk3.22 make -f $(MAKEFILE_NAME) GUI=gtk4 CLIENT=gtk4 FCMP=gtk4 EXTRA_CONFIG="--disable-ruledit CFLAGS=\"-Wno-cast-align $$CFLAGS\" $(EXTRA_CONFIG)" install-freeciv-gtk4 make -f $(MAKEFILE_NAME) GUI=sdl2 CLIENT=sdl2 FCMP=gtk4 EXTRA_CONFIG="--disable-ruledit CFLAGS=\"-Wno-cast-align $$CFLAGS\" $(EXTRA_CONFIG)" install-freeciv-sdl2 - make -f $(MAKEFILE_NAME) GUI=qt6 CLIENT=qt FCMP=qt EXTRA_CONFIG="--with-qtver=qt6 --with-qt6-includes=/$(ARCHDIR)/include/qt6 --with-qt6-libs=/$(ARCHDIR)/lib CFLAGS=\"-Wno-cast-align $$CFLAGS\" $(EXTRA_CONFIG)" MOCCMD="$(QT6_MOCCMD)" install-freeciv-qt6 - make -f $(MAKEFILE_NAME) EXTRA_CONFIG="CFLAGS=\"-Wno-cast-align $$CFLAGS\" $(EXTRA_CONFIG)" MOCCMD="$(QT6_MOCCMD)" install-ruledit-qt6 + make -f $(MAKEFILE_NAME) GUI=qt5 CLIENT=qt FCMP=qt EXTRA_CONFIG="--with-qtver=qt5 --with-qt5-includes=/$(ARCHDIR)/include/qt6 --with-qt6-libs=/$(ARCHDIR)/lib CFLAGS=\"-Wno-cast-align $$CFLAGS\" $(EXTRA_CONFIG)" MOCCMD="$(QT5_MOCCMD)" install-freeciv-qt5 + make -f $(MAKEFILE_NAME) EXTRA_CONFIG="CFLAGS=\"-Wno-cast-align $$CFLAGS\" $(EXTRA_CONFIG)" MOCCMD="$(QT5_MOCCMD)" install-ruledit-qt5 gtk3.22-installer: make -f $(MAKEFILE_NAME) GUI=gtk3.22 CLIENT=gtk3.22 FCMP=gtk3 EXTRA_CONFIG="--disable-ruledit $(EXTRA_CONFIG)" wrap-gtk3.22 diff --git a/windows/installer_msys2/Makefile.meson b/windows/installer_msys2/Makefile.meson index 345e2e7b09..0b70650e6a 100644 --- a/windows/installer_msys2/Makefile.meson +++ b/windows/installer_msys2/Makefile.meson @@ -86,7 +86,7 @@ all-win64-10: gtk3.22-installer sdl2-installer gtk4-installer qt6-installer rule all-win64+: gtk3.22-install sdl2-install gtk4-install qt6-install ruledit-install-qt6 -all-win32+: gtk3.22-install sdl2-install gtk4-install qt6-install ruledit-install-qt6 +all-win32+: gtk3.22-install sdl2-install gtk4-install qt5-install ruledit-install-qt5 snapshot: make -f $(MAKEFILE_NAME) VERSION_REVTYPE="git" EXTRA_CONFIG="-Dgitrev=true $(EXTRA_CONFIG)" all @@ -124,11 +124,17 @@ gtk4-install: sdl2-install: make -f $(MAKEFILE_NAME) GUI=sdl2 CLIENT=sdl2 FCMP=gtk4 install-freeciv-sdl2 +qt5-install: + make -f $(MAKEFILE_NAME) GUI=qt5 CLIENT=qt FCMP=qt EXTRA_CONFIG="-Dqtver=qt5 $(EXTRA_CONFIG)" install-freeciv-qt5 + qt6-install: - make -f $(MAKEFILE_NAME) GUI=qt6 CLIENT=qt FCMP=qt install-freeciv-qt6 + make -f $(MAKEFILE_NAME) GUI=qt6 CLIENT=qt FCMP=qt EXTRA_CONFIG="-Dqtver=qt6 $(EXTRA_CONFIG)" install-freeciv-qt6 + +ruledit-install-qt5: + make -f $(MAKEFILE_NAME) GUI=qt5 EXTRA_CONFIG="-Dqtver=qt5 $(EXTRA_CONFIG)" install-ruledit-qt5 ruledit-install-qt6: - make -f $(MAKEFILE_NAME) GUI=qt6 install-ruledit-qt6 + make -f $(MAKEFILE_NAME) GUI=qt6 EXTRA_CONFIG="-Dqtver=qt6 $(EXTRA_CONFIG)" install-ruledit-qt6 installer-common: install-freeciv-$(GUI) install-env-$(GUI) # Extract Freeciv version -- 2.39.2