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.
This commit is contained in:
psykose 2024-09-20 03:12:04 +02:00 committed by Wim Taymans
parent bdd4d3a8fc
commit 2d071d658f
4 changed files with 20 additions and 7 deletions

View file

@ -6,8 +6,8 @@ v4l2_dependencies = [ spa_dep, libinotify_dep ]
if libudev_dep.found()
v4l2_sources += [ 'v4l2-udev.c' ]
v4l2_dependencies += [ libudev_dep ]
if systemd_dep.found()
v4l2_dependencies += [ systemd_dep ]
if logind_dep.found()
v4l2_dependencies += [ logind_dep ]
endif
endif