build: Check that introspection is enabled for docs build
authorBenjamin Otte <otte@redhat.com>
Sun, 29 Aug 2021 00:47:34 +0000 (02:47 +0200)
committerMatthias Clasen <mclasen@redhat.com>
Thu, 2 Sep 2021 23:59:41 +0000 (19:59 -0400)
docs/reference/meson.build

index f69f568f2e90fce6123a7895dc1f22edc4687c36..4ca44b67e8a9f35331501331e3014e6f6decf341 100644 (file)
@@ -5,6 +5,10 @@ gidocgen = find_program('gi-docgen', required: get_option('gtk_doc'))
 
 docs_dir = gtk_datadir / 'doc'
 
+if get_option('gtk_doc') and not build_gir
+  error('API reference requires introspection.')
+endif
+
 subdir('gdk')
 subdir('gsk')
 subdir('gtk')