summaryrefslogtreecommitdiff
path: root/gdk-pixbuf
diff options
context:
space:
mode:
authorXavier Claessens <xavier.claessens@collabora.com>2020-10-14 16:55:00 -0400
committerXavier Claessens <xavier.claessens@collabora.com>2020-10-16 16:49:43 -0400
commit50387389beda3df666b3ef80811353b35f6d59fd (patch)
tree1d5d32a943aaf3eceb077951ff6485139f6981ff /gdk-pixbuf
parent213d670a106effd5ba2769049c2c80998bef666b (diff)
downloadgdk-pixbuf-50387389beda3df666b3ef80811353b35f6d59fd.tar.gz
meson: Change introspection option to feature type
This is more consistent with other modules like GTK.
Diffstat (limited to 'gdk-pixbuf')
-rw-r--r--gdk-pixbuf/meson.build4
1 files changed, 3 insertions, 1 deletions
diff --git a/gdk-pixbuf/meson.build b/gdk-pixbuf/meson.build
index fdf98da52..d9a254f14 100644
--- a/gdk-pixbuf/meson.build
+++ b/gdk-pixbuf/meson.build
@@ -181,7 +181,9 @@ gdkpixbuf = library('gdk_pixbuf-2.0',
],
install: true)
-build_gir = get_option('gir')
+gir = find_program('g-ir-scanner', required : get_option('introspection'))
+build_gir = gir.found() and (not meson.is_cross_build() or get_option('introspection').enabled())
+
if build_gir
gir_args = [
'--quiet',