pipewire-jack/src/meson.build: turn jack-devel warning into error

Almost no one will see that warning just like the rest of Meson
configuration warnings. So, if it's gonna yield a build with
dysfunctional JACK SDK, then it's best to make it explicitly fail
before people file bugs about missing jack.pc file.
This commit is contained in:
Niklāvs Koļesņikovs 2021-08-09 13:27:12 +03:00
parent 0e386b6584
commit 03a4c0100a
No known key found for this signature in database
GPG key ID: 8A45FF71F7C7210A

View file

@ -68,8 +68,17 @@ pipewire_jackserver = shared_library('jacknet',
install_dir : libjack_path, install_dir : libjack_path,
) )
if meson.version().version_compare('>=0.59.0')
if get_option('jack-devel') == true if get_option('jack-devel') == true
if meson.version().version_compare('<0.59.0')
error(
'''
Before version 0.59.0 Meson creates a wrong jack pkg-config file.
For that reason this is now an error. Please update Meson,
if you want to have JACK development files.
''')
endif
pkgconfig.generate(filebase : 'jack', pkgconfig.generate(filebase : 'jack',
libraries : [pipewire_jack, pipewire_jackserver], libraries : [pipewire_jack, pipewire_jackserver],
name : 'jack', name : 'jack',
@ -77,14 +86,6 @@ if meson.version().version_compare('>=0.59.0')
version : '1.9.17', version : '1.9.17',
extra_cflags : '-D_REENTRANT', extra_cflags : '-D_REENTRANT',
unescaped_variables: ['server_libs=-L${libdir} -ljackserver']) unescaped_variables: ['server_libs=-L${libdir} -ljackserver'])
endif
else
warning(
'''
No jack pkg-config file is generated.\n
Before version 0.59.0 Meson creates a wrong jack pkg-config file.\n
Please update Meson if you want to generate a jack pkg-config file.
''')
endif endif
if sdl_dep.found() if sdl_dep.found()