From 88d6a4572aa136704881e4fdeeecf8bba03e49ea Mon Sep 17 00:00:00 2001 From: David Robillard Date: Thu, 24 Nov 2022 11:44:02 -0500 Subject: Add docs_cpp configuration option and disable it by default Doxygen is now giving parse errors in most places where @copydoc is used. Unfortunately, this setup for bindings with documentation is generally really flaky, and I probably need to figure something else out anyway. --- doc/meson.build | 5 ++++- meson_options.txt | 3 +++ 2 files changed, 7 insertions(+), 1 deletion(-) 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') -- cgit v1.2.1