[gtk/wip/otte/symbolic-paintable: 1/5] build: Check that introspection is enabled for docs build




commit 36dd959bf97f611cdaf22be891f931f7e3c35941
Author: Benjamin Otte <otte redhat com>
Date:   Sun Aug 29 02:47:34 2021 +0200

    build: Check that introspection is enabled for docs build

 docs/reference/meson.build | 4 ++++
 1 file changed, 4 insertions(+)
---
diff --git a/docs/reference/meson.build b/docs/reference/meson.build
index f69f568f2e..4ca44b67e8 100644
--- a/docs/reference/meson.build
+++ b/docs/reference/meson.build
@@ -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')


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]