pipewire/spa/plugins/v4l2/meson.build
psykose cc5a4a97fe spa: use a separate logind dependency separate from systemd
non-systemd systems also have logind, in the form of elogind, which works to
resolve the v4l2 video source race just as well. permit finding elogind, by
using a separate dep object.
2024-09-25 10:11:13 +02:00

19 lines
624 B
Meson

v4l2_sources = ['v4l2.c',
'v4l2-device.c',
'v4l2-source.c']
v4l2_dependencies = [ spa_dep, libinotify_dep ]
if libudev_dep.found()
v4l2_sources += [ 'v4l2-udev.c' ]
v4l2_dependencies += [ libudev_dep ]
if logind_dep.found()
v4l2_dependencies += [ logind_dep ]
endif
endif
v4l2lib = shared_library('spa-v4l2',
v4l2_sources,
include_directories : [ configinc ],
dependencies : v4l2_dependencies,
install : true,
install_dir : spa_plugindir / 'v4l2')