From df587aa10005475a1a9300001e7045b1ba357b9e Mon Sep 17 00:00:00 2001 From: Laurent Pinchart Date: Sat, 27 Apr 2019 05:12:18 +0300 Subject: libcamera: Make libudev optional libcamera depends on libudev for device enumeration. It is however useful to allow building documentation without requiring the dependency to be installed. Make the libudev dependency optional and compile the udev-based device enumerator out when libudev is not present. Note that while libcamera will compile without libudev, it will not be able to enumerate devices. A sysfs-based device enumerator is planned as a fallback but not implemented yet. Signed-off-by: Laurent Pinchart Reviewed-by: Kieran Bingham --- Documentation/Doxyfile.in | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'Documentation') diff --git a/Documentation/Doxyfile.in b/Documentation/Doxyfile.in index 3e2b7fd9..950ad4fe 100644 --- a/Documentation/Doxyfile.in +++ b/Documentation/Doxyfile.in @@ -833,7 +833,9 @@ RECURSIVE = YES # Note that relative paths are relative to the directory from which doxygen is # run. -EXCLUDE = ../src/libcamera/pipeline/ +EXCLUDE = ../src/libcamera/device_enumerator_udev.cpp \ + ../src/libcamera/include/device_enumerator_udev.h \ + ../src/libcamera/pipeline/ # The EXCLUDE_SYMLINKS tag can be used to select whether or not files or # directories that are symbolic links (a Unix file system feature) are excluded -- cgit v1.2.1