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,
)
if meson.version().version_compare('>=0.59.0')
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',
libraries : [pipewire_jack, pipewire_jackserver],
name : 'jack',
@ -78,14 +87,6 @@ if meson.version().version_compare('>=0.59.0')
extra_cflags : '-D_REENTRANT',
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
if sdl_dep.found()
executable('video-dsp-play',