mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-03 09:01:54 -05:00
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:
parent
0e386b6584
commit
03a4c0100a
1 changed files with 16 additions and 15 deletions
|
|
@ -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()
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue