meson: fix build with missing libudev-devel

This commit is contained in:
Wim Taymans 2024-01-26 13:28:07 +01:00
parent cb2b7af8fd
commit b4c7973d49
7 changed files with 28 additions and 9 deletions

View file

@ -45,10 +45,9 @@ if have_vulkan
endif
v4l2_header_found = cc.has_header('linux/videodev2.h', required: get_option('v4l2'))
v4l2_supported = libudev_dep.found() and v4l2_header_found
summary({'V4L2 kernel header': v4l2_header_found}, bool_yn: true, section: 'Backend')
summary({'V4L2 enabled': v4l2_supported}, bool_yn: true, section: 'Backend')
if v4l2_supported
summary({'V4L2 enabled': v4l2_header_found}, bool_yn: true, section: 'Backend')
if v4l2_header_found
subdir('v4l2')
endif
if libcamera_dep.found()