mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-10-31 22:25:38 -04:00
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.
19 lines
624 B
Meson
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')
|