summaryrefslogtreecommitdiff
path: root/gdk-pixbuf
diff options
context:
space:
mode:
authorMatthew Waters <matthew@centricular.com>2018-10-08 21:04:49 +1100
committerMatthew Waters <matthew@centricular.com>2018-10-08 22:20:25 +1100
commit475cb37ffd969cd4d912fac35e36644a0ee37986 (patch)
treebb6ba7b878560bb5dee2b397f35af148959f89e3 /gdk-pixbuf
parentfc37708313a5fc52083cf10c9326f3509d67701f (diff)
downloadgdk-pixbuf-475cb37ffd969cd4d912fac35e36644a0ee37986.tar.gz
meson: Don't generate the loader cache when cross-compiling
Diffstat (limited to 'gdk-pixbuf')
-rw-r--r--gdk-pixbuf/meson.build29
1 files changed, 17 insertions, 12 deletions
diff --git a/gdk-pixbuf/meson.build b/gdk-pixbuf/meson.build
index 166d23140..41323b2d4 100644
--- a/gdk-pixbuf/meson.build
+++ b/gdk-pixbuf/meson.build
@@ -305,18 +305,23 @@ foreach bin: gdkpixbuf_bin
set_variable(bin_name.underscorify(), bin)
endforeach
-# The 'loaders.cache' used for testing, so we don't accidentally
-# load the installed cache; we always build it by default
-loaders_cache = custom_target('loaders.cache',
- output: 'loaders.cache',
- capture: true,
- command: [
- gdk_pixbuf_query_loaders,
- dynamic_loaders,
- ],
- depends: dynamic_loaders_dep,
- build_by_default: true)
-loaders_dep = declare_dependency(sources: [ loaders_cache ])
+if not meson.is_cross_build()
+ # The 'loaders.cache' used for testing, so we don't accidentally
+ # load the installed cache; we always build it by default
+ loaders_cache = custom_target('loaders.cache',
+ output: 'loaders.cache',
+ capture: true,
+ command: [
+ gdk_pixbuf_query_loaders,
+ dynamic_loaders,
+ ],
+ depends: dynamic_loaders_dep,
+ build_by_default: true)
+ loaders_dep = declare_dependency(sources: [ loaders_cache ])
+else
+ loaders_cache = []
+ loaders_dep = declare_dependency()
+endif
pkgconfig = import('pkgconfig')
pkgconfig.generate(