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,23 +68,24 @@ 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
pkgconfig.generate(filebase : 'jack', if meson.version().version_compare('<0.59.0')
libraries : [pipewire_jack, pipewire_jackserver], error(
name : 'jack',
description : 'PipeWire JACK API',
version : '1.9.17',
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.
Before version 0.59.0 Meson creates a wrong jack pkg-config file.\n For that reason this is now an error. Please update Meson,
Please update Meson if you want to generate a jack pkg-config file. if you want to have JACK development files.
''') ''')
endif
pkgconfig.generate(filebase : 'jack',
libraries : [pipewire_jack, pipewire_jackserver],
name : 'jack',
description : 'PipeWire JACK API',
version : '1.9.17',
extra_cflags : '-D_REENTRANT',
unescaped_variables: ['server_libs=-L${libdir} -ljackserver'])
endif endif
if sdl_dep.found() if sdl_dep.found()