From: Alexander Kanavin Date: Mon, 2 Jan 2023 14:00:02 +0000 (+0100) Subject: meson.build: build introspection according to option only X-Git-Tag: archive/raspbian/4.12.3+ds-1+rpi1~1^2^2^2~22^2~8^2~107^2 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=ae71d338d79abe5af5ec2437f41c80da0395affc;p=gtk4.git meson.build: build introspection according to option only The way the check is written, if the build is native, then the introspection option has no effect. Particularly yocto project does want to disable introspection in native builds and enable it in cross builds (both via the option), and without this patch the former is not possible. Signed-off-by: Alexander Kanavin --- diff --git a/meson.build b/meson.build index ab46c7dcda..4282f2701c 100644 --- a/meson.build +++ b/meson.build @@ -730,7 +730,7 @@ endif # 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()) +build_gir = gir.found() and get_option('introspection').enabled() project_build_root = meson.current_build_dir()