summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorSimon Ser <contact@emersion.fr>2022-05-05 11:14:00 +0200
committerSimon Ser <contact@emersion.fr>2022-05-10 14:02:51 +0000
commit9402afc353bb359b4d87622451abd635d111d356 (patch)
tree49c8f6cc04562c72167fad00376d064336acd6da /doc
parent2dcc35af81cfc894335088a3843fc26af7ac9306 (diff)
downloadwayland-9402afc353bb359b4d87622451abd635d111d356.tar.gz
build: sanity check options
Fail when tests/documentation is enabled without libraries. Fail when neither scanner nor libraries is enabled, because we don't build anything in that case. Signed-off-by: Simon Ser <contact@emersion.fr>
Diffstat (limited to 'doc')
-rw-r--r--doc/meson.build4
1 files changed, 4 insertions, 0 deletions
diff --git a/doc/meson.build b/doc/meson.build
index 57c7180..44fda2a 100644
--- a/doc/meson.build
+++ b/doc/meson.build
@@ -1,3 +1,7 @@
+if not get_option('libraries')
+ error('-Ddocumentation=true requires -Dlibraries=true')
+endif
+
dot = find_program('dot')
doxygen = find_program('doxygen')
xsltproc = find_program('xsltproc')