diff options
author | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2023-07-06 10:26:51 +0300 |
---|---|---|
committer | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2023-07-07 11:39:32 +0300 |
commit | d314d3b98b86dec9a25ce7b829e72a790b7ead1b (patch) | |
tree | c18d50782cc9abb2ecf630a693795bdc957132c2 /src | |
parent | ca437b4a0cde5ec72a5eea709eb044264deb4f55 (diff) |
libcamera: Add option to configure udev support
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>
Reviewed-by: Umang Jain <umang.jain@ideasonboard.com>
Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/libcamera/meson.build | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libcamera/meson.build b/src/libcamera/meson.build index 38fbb41e..b24f8296 100644 --- a/src/libcamera/meson.build +++ b/src/libcamera/meson.build @@ -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. |