summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2023-03-08 03:02:16 +0000
committerMatthias Clasen <mclasen@redhat.com>2023-03-08 03:02:16 +0000
commit40b154bf2848a17fee1a1e613eb38c1c2c80b7bc (patch)
treecbe400f91cd7bde4177a6fcae4192ced17d34cad
parent30586d75acae8ab45ffd4ad58a1855ea5c58ac8a (diff)
parent87f820287a8e8caeb482c4601ca8cc87baa31092 (diff)
downloadgtk+-40b154bf2848a17fee1a1e613eb38c1c2c80b7bc.tar.gz
Merge branch 'matthiasc/for-main' into 'main'
build: Handle introspection a bit better See merge request GNOME/gtk!5614
-rw-r--r--meson.build7
1 files changed, 6 insertions, 1 deletions
diff --git a/meson.build b/meson.build
index 07912b124e..e89ce6872a 100644
--- a/meson.build
+++ b/meson.build
@@ -728,8 +728,13 @@ endif
# Introspection
gir = find_program('g-ir-scanner', required : get_option('introspection'))
-build_gir = gir.found() and get_option('introspection').enabled()
+if not gir.found() and get_option('introspection').enabled()
+ error('Introspection enabled, but g-ir-scanner not found.')
+endif
+
+build_gir = gir.found() and (get_option('introspection').enabled() or
+ (get_option('introspection').allowed() and get_option('gtk_doc')))
project_build_root = meson.current_build_dir()