From 50387389beda3df666b3ef80811353b35f6d59fd Mon Sep 17 00:00:00 2001 From: Xavier Claessens Date: Wed, 14 Oct 2020 16:55:00 -0400 Subject: meson: Change introspection option to feature type This is more consistent with other modules like GTK. --- gdk-pixbuf/meson.build | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'gdk-pixbuf') 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', -- cgit v1.2.1