Project

General

Profile

Feature #2248 ยป 0083-Make-sdl3-audio-the-default.patch

Marko Lindqvist, 10/10/2026 02:26 PM

View differences:

INSTALL
The default is 'try' to enable it if suitable readline found.
audio ('none'/'sdl2'/'sdl3'):
What kind of sound support should be built to the clients. Defaults to sdl2.
What kind of sound support should be built to the clients. Defaults to sdl3.
tools (array):
Extra tools to build:
doc/README.packaging
* New gtk4x-client that is linked against relatively new gtk4 versions
* Build with meson supports building gtk4x modpack installer that is linked
against relatively new gtk4 versions
* sdl3 audio is now the default
----------------------------------------------------------------------
Compatibility of modified versions
meson_options.txt
option('audio',
type: 'combo',
choices: ['none', 'sdl2', 'sdl3'],
value: 'sdl2',
value: 'sdl3',
description: 'Sound support type to build')
option('tools',
platforms/windows/installer_msys2/Makefile.meson
cp freeciv-ruledit.cmd $(INST_DIR)/$(WINARCH)-client-$(GUI)/
install-env-gtk3.22: install-env-gtk3-fcmp
cp -R $(addprefix $(DLLPATH_PREFIX), $(SOUND_DLLS_SDL2)) $(INST_DIR)/$(WINARCH)-client-$(GUI)/
cp -R $(addprefix $(DLLPATH_PREFIX), $(SOUND_DLLS_SDL3)) $(INST_DIR)/$(WINARCH)-client-$(GUI)/
install-env-gtk4: install-env-gtk4-fcmp
cp -R $(addprefix $(DLLPATH_PREFIX), $(SOUND_DLLS_SDL2)) $(INST_DIR)/$(WINARCH)-client-$(GUI)/
cp -R $(addprefix $(DLLPATH_PREFIX), $(SOUND_DLLS_SDL3)) $(INST_DIR)/$(WINARCH)-client-$(GUI)/
install-env-gtk4x: install-env-gtk4-fcmp
cp -R $(addprefix $(DLLPATH_PREFIX), $(SOUND_DLLS_SDL2)) $(INST_DIR)/$(WINARCH)-client-$(GUI)/
cp -R $(addprefix $(DLLPATH_PREFIX), $(SOUND_DLLS_SDL3)) $(INST_DIR)/$(WINARCH)-client-$(GUI)/
SDL2_DLLS := \
SDL2_ttf.dll \
......
install-env-qt6: install-env-qt6-fcmp
# Add DLLs
cp -R $(addprefix $(DLLPATH_PREFIX), $(CLIENT_QT6_DLLS)) $(INST_DIR)/$(WINARCH)-client-$(GUI)/
cp -R $(addprefix $(DLLPATH_PREFIX), $(SOUND_DLLS_SDL2)) $(INST_DIR)/$(WINARCH)-client-$(GUI)/
cp -R $(addprefix $(DLLPATH_PREFIX), $(SOUND_DLLS_SDL3)) $(INST_DIR)/$(WINARCH)-client-$(GUI)/
install-env-qt6x: install-env-qt6
    (1-1/1)