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:
Peter Hutterer 2021-10-27 15:16:27 +10:00 committed by Wim Taymans
parent f39f9b207b
commit 6fab8fabca
2 changed files with 10 additions and 2 deletions

View file

@ -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',

View file

@ -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)