summaryrefslogtreecommitdiff
path: root/pango/meson.build
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2020-09-30 17:51:15 +0000
committerMatthias Clasen <mclasen@redhat.com>2020-09-30 17:51:15 +0000
commit1c06be2e50d86a891be02e2699725e7549daa11c (patch)
treec8a09a3218395da09f828fe00fa1e8da019034bd /pango/meson.build
parentbbdb6890f2c45a7f5353402fb723073d15227612 (diff)
parent2a6bb53779c760dfabad9e8e8ae225dc12ac5631 (diff)
downloadpango-1c06be2e50d86a891be02e2699725e7549daa11c.tar.gz
Merge branch 'introspection2' into 'master'
meson: Change introspection option to yielding feature See merge request GNOME/pango!252
Diffstat (limited to 'pango/meson.build')
-rw-r--r--pango/meson.build3
1 files changed, 2 insertions, 1 deletions
diff --git a/pango/meson.build b/pango/meson.build
index 4c055f52..0b87b644 100644
--- a/pango/meson.build
+++ b/pango/meson.build
@@ -121,7 +121,8 @@ libpango = library(
pango_dep_sources = [pango_enum_h]
-build_gir = get_option('introspection')
+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 = [