summaryrefslogtreecommitdiff
path: root/Documentation
diff options
context:
space:
mode:
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>2021-10-27 22:21:34 +0300
committerLaurent Pinchart <laurent.pinchart@ideasonboard.com>2021-10-30 17:38:11 +0300
commit398c0d611a44832a6e13fd757c57fbd01e3539d2 (patch)
tree4cfe3c1fded1b5c1ab31cd7fdc23a7010a0b09bd /Documentation
parent76bd9f3d80cb99a3391832b644b65a619427ed00 (diff)
Documentation: Fix build when the IPU3 pipeline handler is disabled
When the IPU3 pipeline handler is disabled, the corresponding IPA module isn't compiled, which results in the meson ipu3_ipa_sources variable to be undefined. The variable is used unconditionally as part of the Doxygen inputs, so Meson complains at configuration time that it is undefined. Fix it by including the IPU3 IPA documentation in the Doxygen build only when the IPU3 pipeline handler is enabled. Fixes: 45dd51988952 ("Documentation: Include IPU3 in Doxygen build") Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
Diffstat (limited to 'Documentation')
-rw-r--r--Documentation/meson.build31
1 files changed, 18 insertions, 13 deletions
diff --git a/Documentation/meson.build b/Documentation/meson.build
index df36a808..4c972675 100644
--- a/Documentation/meson.build
+++ b/Documentation/meson.build
@@ -19,20 +19,25 @@ if doxygen.found() and dot.found()
output : 'Doxyfile',
configuration : cdata)
+ doxygen_input = [
+ doxyfile,
+ libcamera_base_headers,
+ libcamera_base_sources,
+ libcamera_internal_headers,
+ libcamera_ipa_headers,
+ libcamera_ipa_interfaces,
+ libcamera_public_headers,
+ libcamera_sources,
+ libipa_headers,
+ libipa_sources,
+ ]
+
+ if is_variable('ipu3_ipa_sources')
+ doxygen_input += [ipu3_ipa_sources]
+ endif
+
custom_target('doxygen',
- input : [
- doxyfile,
- ipu3_ipa_sources,
- libcamera_base_headers,
- libcamera_base_sources,
- libcamera_internal_headers,
- libcamera_ipa_headers,
- libcamera_ipa_interfaces,
- libcamera_public_headers,
- libcamera_sources,
- libipa_headers,
- libipa_sources,
- ],
+ input : doxygen_input,
output : 'api-html',
command : [doxygen, doxyfile],
install : true,