diff options
| author | Ethan Morgan <ethan@gweithio.com> | 2026-02-14 16:44:06 +0000 |
|---|---|---|
| committer | Ethan Morgan <ethan@gweithio.com> | 2026-02-14 16:44:06 +0000 |
| commit | 54409423f767d8b1cf30cb7d0efca6b4ca138823 (patch) | |
| tree | d915ac7828703ce4b963efdd9728a1777ba18c1e /vcpkg/ports/gdk-pixbuf/loaders-cache.patch | |
Diffstat (limited to 'vcpkg/ports/gdk-pixbuf/loaders-cache.patch')
| -rw-r--r-- | vcpkg/ports/gdk-pixbuf/loaders-cache.patch | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/vcpkg/ports/gdk-pixbuf/loaders-cache.patch b/vcpkg/ports/gdk-pixbuf/loaders-cache.patch new file mode 100644 index 0000000..d0a8ce9 --- /dev/null +++ b/vcpkg/ports/gdk-pixbuf/loaders-cache.patch @@ -0,0 +1,20 @@ +diff --git a/gdk-pixbuf/meson.build b/gdk-pixbuf/meson.build +index 54ff9dd..27f8512 100644 +--- a/gdk-pixbuf/meson.build ++++ b/gdk-pixbuf/meson.build +@@ -348,7 +348,14 @@ foreach bin: gdkpixbuf_bin + set_variable(bin_name.underscorify(), bin) + endforeach + +-if not meson.is_cross_build() ++if dynamic_loaders.length() == 0 ++ # skip tool invocation ++ cmake = find_program('cmake', required : true) ++ loaders_cache = custom_target('loaders.cache', output: 'loaders.cache', capture: true, ++ command: [ cmake, '-E', 'echo', '# No dynamic loaders enabled at build time' ], ++ build_by_default: true) ++ loaders_dep = declare_dependency(sources: [ loaders_cache ]) ++elif 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', |