mirror of
https://gitlab.freedesktop.org/pipewire/pipewire
synced 2024-09-20 00:11:31 +00:00
de72ed5590
Until now the 'v4l2' feature was not actually checking that its required header has been found, this commit adds a check for <linux/videodev2.h> and correctly reports both header status and whether the feature itself ends up enabled (depends on libudev).
54 lines
1.2 KiB
Meson
54 lines
1.2 KiB
Meson
if alsa_dep.found()
|
|
subdir('alsa')
|
|
endif
|
|
if not get_option('audioconvert').disabled()
|
|
subdir('audioconvert')
|
|
endif
|
|
if not get_option('audiomixer').disabled()
|
|
subdir('audiomixer')
|
|
endif
|
|
if not get_option('control').disabled()
|
|
subdir('control')
|
|
endif
|
|
if not get_option('audiotestsrc').disabled()
|
|
subdir('audiotestsrc')
|
|
endif
|
|
if bluez_dep.found()
|
|
subdir('bluez5')
|
|
endif
|
|
if avcodec_dep.found()
|
|
subdir('ffmpeg')
|
|
endif
|
|
if jack_dep.found()
|
|
subdir('jack')
|
|
endif
|
|
if not get_option('support').disabled()
|
|
subdir('support')
|
|
endif
|
|
if not get_option('test').disabled()
|
|
subdir('test')
|
|
endif
|
|
if not get_option('videoconvert').disabled()
|
|
subdir('videoconvert')
|
|
endif
|
|
if not get_option('videotestsrc').disabled()
|
|
subdir('videotestsrc')
|
|
endif
|
|
if not get_option('volume').disabled()
|
|
subdir('volume')
|
|
endif
|
|
if vulkan_headers
|
|
subdir('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
|
|
subdir('v4l2')
|
|
endif
|
|
if libcamera_dep.found()
|
|
subdir('libcamera')
|
|
endif
|