summaryrefslogtreecommitdiff
path: root/meson_options.txt
diff options
context:
space:
mode:
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>2024-05-13 15:27:57 +0300
committerLaurent Pinchart <laurent.pinchart@ideasonboard.com>2024-05-14 14:52:55 +0300
commit899087fe42d98a2847b1324f9224f731c7a8f91c (patch)
treeba9c34aab8a4415703925a45cbafb92a2d947881 /meson_options.txt
parenta2a61121ebae8c570d0cc1f1de99f00b4351acd8 (diff)
Documentation: Add option to treat Doxygen warnings as errors
A new Doxygen warning introduced in a recent commit went unnoticed, both in manual tests and in CI. Unlike C/C++ warnings that are treated as errors, we don't fail the build with Doxygen warnings. This is due to the fact that the libcamera documentation compiles cleanly only with quite recent versions of Doxygen. Enabling the WARN_AS_ERROR Doxygen option unconditionally could bother many users. To improve the situation, add a meson option to treat Doxygen warnings as errors. The option is disabled by default, preserving the current behaviour, and will be enabled in CI builds. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
Diffstat (limited to 'meson_options.txt')
-rw-r--r--meson_options.txt5
1 files changed, 5 insertions, 0 deletions
diff --git a/meson_options.txt b/meson_options.txt
index c61eb555..7aa41249 100644
--- a/meson_options.txt
+++ b/meson_options.txt
@@ -20,6 +20,11 @@ option('documentation',
type : 'feature',
description : 'Generate the project documentation')
+option('doc_werror',
+ type : 'boolean',
+ value : false,
+ description : 'Treat documentation warnings as errors')
+
option('gstreamer',
type : 'feature',
value : 'auto',