Project

General

Profile

Feature #920 ยป 0044-Msys2-Add-gtk4x-installer.patch

Marko Lindqvist, 09/28/2024 01:21 AM

View differences:

doc/README.msys2
- With premade environment, buildable clients are:
For "win64": gtk3.22, gtk4, sdl2, Qt5
For "win64-10": gtk3.22, gtk4, sdl2, Qt6
For "win64-10": gtk3.22, gtk4, gtk4x, sdl2, Qt6
Setup
......
- "<gui>-installer", where <gui> is
- gtk3.22
- gtk4
- gtk4x
- sdl2
- qt5
- qt6
platforms/windows/Makefile.am
installer_msys2/create-freeciv-gtk-qt-nsi.sh \
installer_msys2/create-freeciv-gtk3.22-nsi.sh \
installer_msys2/create-freeciv-gtk4-nsi.sh \
installer_msys2/create-freeciv-gtk4x-nsi.sh \
installer_msys2/create-freeciv-qt5-nsi.sh \
installer_msys2/create-freeciv-qt6-nsi.sh \
installer_msys2/create-freeciv-qt6x-nsi.sh \
......
installer_msys2/create-freeciv-ruledit-nsi.sh \
installer_msys2/freeciv-gtk3.22.cmd \
installer_msys2/freeciv-gtk4.cmd \
installer_msys2/freeciv-gtk4x.cmd \
installer_msys2/freeciv-mp-gtk3.cmd \
installer_msys2/freeciv-mp-gtk4.cmd \
installer_msys2/freeciv-mp-gtk4x.cmd \
installer_msys2/freeciv-mp-qt.cmd \
installer_msys2/freeciv-qt.cmd \
installer_msys2/freeciv-sdl2.cmd \
platforms/windows/installer_msys2/Makefile.meson
all-win64: gtk3.22-installer sdl2-installer gtk4-installer qt5-installer ruledit-installer-qt5
all-win64-10: gtk3.22-installer sdl2-installer gtk4-installer qt6-installer ruledit-installer-qt6 qt6x-installer
all-win64-10: gtk3.22-installer sdl2-installer gtk4-installer qt6-installer ruledit-installer-qt6 qt6x-installer gtk4x-installer
all-win64+: gtk3.22-install sdl2-install gtk4-install qt6-install ruledit-install-qt6
all-win64+: gtk3.22-install sdl2-install gtk4-install qt6-install ruledit-install-qt6 gtk4x-install
snapshot:
cd $(SRC_ROOT) ; ./scripts/refresh_changelog.sh
......
gtk4-installer:
make -f $(MAKEFILE_NAME) GUI=gtk4 CLIENT=gtk4 FCMP=gtk4 installer-common
gtk4x-installer:
make -f $(MAKEFILE_NAME) GUI=gtk4x CLIENT=gtk4x FCMP=gtk4x installer-common
sdl2-installer:
make -f $(MAKEFILE_NAME) GUI=sdl2 CLIENT=sdl2 FCMP=gtk4 installer-common
......
gtk4-install:
make -f $(MAKEFILE_NAME) GUI=gtk4 CLIENT=gtk4 FCMP=gtk4 install-freeciv-gtk4
gtk4x-install:
make -f $(MAKEFILE_NAME) GUI=gtk4x CLIENT=gtk4x FCMP=gtk4x install-freeciv-gtk4x
sdl2-install:
make -f $(MAKEFILE_NAME) GUI=sdl2 CLIENT=sdl2 FCMP=gtk4 install-freeciv-sdl2
......
install-freeciv-gtk4: install-freeciv-common
install-freeciv-gtk4x: install-freeciv-common
install-freeciv-sdl2: install-freeciv-common
install-freeciv-qt5: install-freeciv-common
......
install-env-gtk4: install-env-gtk4-fcmp
install-env-gtk4x: install-env-gtk4-fcmp
SDL2_DLLS := \
SDL2_ttf.dll \
libSDL2_gfx-1-0-0.dll \
......
clean:
make -f $(MAKEFILE_NAME) GUI=gtk3.22 clean-build-client clean-install-client clean-installer-common
make -f $(MAKEFILE_NAME) GUI=gtk4 clean-build-client clean-install-client clean-installer-common
make -f $(MAKEFILE_NAME) GUI=gtk4x clean-build-client clean-install-client clean-installer-common
make -f $(MAKEFILE_NAME) GUI=sdl2 clean-build-client clean-install-client clean-installer-common
make -f $(MAKEFILE_NAME) GUI=qt5 clean-build-client clean-install-client clean-installer-common
make -f $(MAKEFILE_NAME) GUI=qt6 clean-build-client clean-install-client clean-installer-common
platforms/windows/installer_msys2/create-freeciv-gtk4x-nsi.sh
#!/bin/sh
# ./create-freeciv-gtk4x-nsi.sh <freeciv files dir> <output dir> <version> <win32|win64|win>
./create-freeciv-gtk-qt-nsi.sh "$1" "$2" "$3" "gtk4x" "GTK4x" "$4" "gtk4x"
platforms/windows/installer_msys2/freeciv-gtk4x.cmd
@echo off
if not "%1" == "auto" set LANG=%1
start "%~n0" /D . "%~dp0\freeciv-gtk4x.exe" %2 %3 %4 %5 %6 %7 %8 %9
platforms/windows/installer_msys2/freeciv-mp-gtk4x.cmd
@echo off
if not "%1" == "auto" set LANG=%1
start "%~n0" /D . "%~dp0\freeciv-mp-gtk4x.exe" %2 %3 %4 %5 %6 %7 %8 %9
    (1-1/1)