Project

General

Profile

Feature #1822 » 0027-Meson-Sanity-check-sdl2-sdl3-audio-and-sdl2-sdl3-cli.patch

Marko Lindqvist, 12/26/2025 09:07 AM

View differences:

meson.build
version : run_command('fc_version', check : true).stdout(),
default_options: ['warning_level=1'])
if get_option('audio') == 'sdl2' and get_option('clients').contains('sdl3')
error('''sdl3-client and sdl2 audio cannot be enabled simultaneously.
To build both sdl2-client and sdl3-client with audio support,
use separate build dirs.''')
endif
if get_option('audio') == 'sdl3' and get_option('clients').contains('sdl2')
error('''sdl2-client and sdl3 audio cannot be enabled simultaneously.
To build both sdl2-client and sdl3-client with audio support,
use separate build dirs.''')
endif
c_compiler = meson.get_compiler('c')
b_root = meson.project_build_root()
(2-2/2)