mirror of
https://gitlab.freedesktop.org/pipewire/pipewire
synced 2024-10-04 15:10:20 +00:00
meson: add a libv4l2-path option to match libjack-path
pw-v4l2 uses the gnu ld's ${LIB} features, see meson.build. Make it possible to work around this by specifying an explicit path, just like for pw-jac. Fixes #1751
This commit is contained in:
parent
f39f9b207b
commit
6fab8fabca
|
@ -61,6 +61,9 @@ option('jack-devel',
|
|||
option('libjack-path',
|
||||
description: 'Where to install the libjack.so library',
|
||||
type: 'string')
|
||||
option('libv4l2-path',
|
||||
description: 'Where to install the libpw-v4l2.so library',
|
||||
type: 'string')
|
||||
option('spa-plugins',
|
||||
description: 'Enable spa plugins integration',
|
||||
type: 'feature',
|
||||
|
|
|
@ -15,8 +15,13 @@ pipewire_v4l2_c_args = [
|
|||
'-fvisibility=hidden',
|
||||
]
|
||||
|
||||
libv4l2_path = modules_install_dir / 'v4l2'
|
||||
libv4l2_path_dlopen = modules_install_dir_dlopen / 'v4l2'
|
||||
libv4l2_path = get_option('libv4l2-path')
|
||||
if libv4l2_path == ''
|
||||
libv4l2_path = modules_install_dir / 'v4l2'
|
||||
libv4l2_path_dlopen = modules_install_dir_dlopen / 'v4l2'
|
||||
else
|
||||
libv4l2_path_dlopen = libv4l2_path
|
||||
endif
|
||||
|
||||
tools_config = configuration_data()
|
||||
tools_config.set('LIBV4L2_PATH', libv4l2_path_dlopen)
|
||||
|
|
Loading…
Reference in a new issue