meson: fix build with missing libudev-devel

(cherry picked from commit b4c7973d49)
This commit is contained in:
Wim Taymans 2024-01-26 13:28:07 +01:00 committed by Robert Mader
parent ee5a6f16f9
commit 3a4374ec09
7 changed files with 28 additions and 9 deletions

View file

@ -104,7 +104,8 @@ if get_option('spa-plugins').allowed()
cdata.set('HAVE_ALSA_COMPRESS_OFFLOAD', compress_offload_option.allowed())
# common dependencies
libudev_dep = dependency('libudev', required: alsa_dep.found() or get_option('udev').enabled() or get_option('v4l2').enabled())
libudev_dep = dependency('libudev', required: get_option('udev').enabled())
cdata.set('HAVE_LIBUDEV', libudev_dep.found())
summary({'Udev': libudev_dep.found()}, bool_yn: true, section: 'Backend')
subdir('plugins')