1 From 48cbdd56036728ffea431ad63cf5e2ad05cef69c Mon Sep 17 00:00:00 2001
2 From: Alexander Kanavin <alex.kanavin@gmail.com>
3 Date: Thu, 14 Feb 2019 18:06:25 +0100
4 Subject: [PATCH] Fix a couple of decisions around cross-compilation
6 1. gobject-introspection can be build when cross compiling
7 2. generating loaders.cache requires running a target binary which
8 we do elsewhere (in postinsts)
10 Upstream-Status: Pending
11 Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
13 gdk-pixbuf/meson.build | 4 +++-
14 1 file changed, 3 insertions(+), 1 deletion(-)
16 diff --git a/gdk-pixbuf/meson.build b/gdk-pixbuf/meson.build
17 index 77c162b..fc3eb33 100644
18 --- a/gdk-pixbuf/meson.build
19 +++ b/gdk-pixbuf/meson.build
20 @@ -230,6 +230,7 @@ foreach bin: gdkpixbuf_bin
21 set_variable(bin_name.underscorify(), bin)
24 +if not meson.is_cross_build()
25 # The 'loaders.cache' used for testing, so we don't accidentally
26 # load the installed cache; we always build it by default
27 loaders_cache = custom_target('loaders.cache',
28 @@ -241,8 +242,9 @@ loaders_cache = custom_target('loaders.cache',
30 build_by_default: true)
31 loaders_dep = declare_dependency(sources: [ loaders_cache ])
34 -build_gir = get_option('with_gir') and not meson.is_cross_build()
35 +build_gir = get_option('with_gir')