@@ -66,6 +66,11 @@ option('tracing',
value : 'auto',
description : 'Enable tracing (based on lttng)')
+option('udev',
+ type : 'feature',
+ value : 'auto',
+ description : 'Enable udev support for hotplug')
+
option('v4l2',
type : 'boolean',
value : false,
@@ -76,7 +76,7 @@ libdl = null_dep
if not cc.has_function('dlopen')
libdl = cc.find_library('dl')
endif
-libudev = dependency('libudev', required : false)
+libudev = dependency('libudev', required : get_option('udev'))
libyaml = dependency('yaml-0.1', required : false)
# Use one of gnutls or libcrypto (provided by OpenSSL), trying gnutls first.
libcamera uses udev to support hotplug (and unplug) detection. This is an optional feature, which gets selected automatically if udev is available. Users may however want to build libcamera without hotplug detection, even if udev is available on the system. Add a new feature option to control udev support. The default value is auto, which retains the existing behaviour. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> --- meson_options.txt | 5 +++++ src/libcamera/meson.build | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) base-commit: d06ed87d49ca3d734fd1c2f1409280abb499c625 prerequisite-patch-id: 03020483e75d365fa1661922fc66b2f16ea11a04