Project

General

Profile

Feature #911 ยป 0007-Msys2-Drop-win64-win10-installers-support.patch

Marko Lindqvist, 10/20/2024 06:04 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, gtk4x, sdl2, Qt6
......
with listing of versions current at the time of this freeciv version.
"<arch>" in the package names depends on the build target:
- win64 -> "x86_64"
- win64-10 -> "ucrt-x86_64"
1) Install MSYS2 following the documentation on their homepage
......
by the date (YYMMDD) in the freeciv msys2 environment
.7z package name.
Most packages are included for all of win64 and
ucrt64 (win64, with minimum requirement of Windows 10) targets.
For each package listed below with <arch> in the name, actually
two packages are installed;
one where <arch> is replaced by 'x86_64', and
......
====================================
Launch build target specific msys2 shell;
ucrt64.exe or mingw64.exe.
ucrt64.exe.
Get the freeciv sources there somehow. Some options are:
1) Download freeciv tarball within msys2 shell with wget
2) Use git within msys2 shell to get them from version control
......
newer Windows versions could otherwise have.
The version is set via MIN_WIN_VER variable. For values to use, see
list in: https://msdn.microsoft.com/en-us/library/6sehtctf.aspx
Current default is 0x0603 (Windows 8.1) for "win64".
This is also the lowest value that msys2 upstream supports.
For "win64-10" the default is 0x0A00 (Windows 10)
Current default is 0x0A00 (Windows 10).
Problems
platforms/windows/installer_msys2/Makefile.meson
7ZDIR=$(OUT_DIR)/portable
ifeq ($(MSYSTEM),MINGW64)
WINARCH=win64
ARCHDIR=mingw64
LIBGCCDLL=libgcc_s_seh-1.dll
CRYPTOLIB_SUFFIX=-x64
PREF_WIN_VER=0x0603
else ifeq ($(MSYSTEM),UCRT64)
ifeq ($(MSYSTEM),UCRT64)
WINARCH=win64-10
ARCHDIR=ucrt64
LIBGCCDLL=libgcc_s_seh-1.dll
......
all: all-$(WINARCH)
all-win64: gtk3.22-installer sdl2-installer gtk4-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 gtk4x-install
    (1-1/1)