aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--doc/meson.build5
-rw-r--r--meson_options.txt3
2 files changed, 7 insertions, 1 deletions
diff --git a/doc/meson.build b/doc/meson.build
index 511316d..66456b7 100644
--- a/doc/meson.build
+++ b/doc/meson.build
@@ -12,5 +12,8 @@ build_docs = doxygen.found() and sphinx_build.found()
if build_docs
subdir('_static')
subdir('c')
- subdir('cpp')
+
+ if not get_option('docs_cpp').disabled()
+ subdir('cpp')
+ endif
endif
diff --git a/meson_options.txt b/meson_options.txt
index 78856a7..641be76 100644
--- a/meson_options.txt
+++ b/meson_options.txt
@@ -7,6 +7,9 @@ option('examples', type: 'feature', value: 'auto', yield: true,
option('docs', type: 'feature', value: 'auto',
description: 'Build documentation')
+option('docs_cpp', type: 'feature', value: 'disabled',
+ description: 'Build C++ wrapper documentation')
+
option('opengl', type: 'feature', value: 'auto',
description : 'Enable support for the OpenGL graphics API')