From 28f96ed9c072d768b9944f3fb027ddbc597727ea Mon Sep 17 00:00:00 2001 From: oscfdezdz <42654671+oscfdezdz@users.noreply.github.com> Date: Tue, 3 Oct 2023 10:35:55 +0200 Subject: [PATCH] flatpak: Add WebP support --- com.mattjakeman.ExtensionManager.Devel.json | 25 ++++++++++++++++++++- 1 file changed, 24 insertions(+), 1 deletion(-) diff --git a/com.mattjakeman.ExtensionManager.Devel.json b/com.mattjakeman.ExtensionManager.Devel.json index 90593b41..504272e3 100644 --- a/com.mattjakeman.ExtensionManager.Devel.json +++ b/com.mattjakeman.ExtensionManager.Devel.json @@ -11,7 +11,8 @@ "--device=dri", "--socket=wayland", "--talk-name=org.gnome.Shell.Extensions", - "--talk-name=org.gnome.SessionManager" + "--talk-name=org.gnome.SessionManager", + "--env=GDK_PIXBUF_MODULE_FILE=/app/lib/gdk-pixbuf-2.0/2.10.0/loaders.cache" ], "cleanup" : [ "/include", @@ -25,6 +26,28 @@ "*.a" ], "modules" : [ + { + "name" : "webp-pixbuf-loader", + "buildsystem" : "meson", + "config-opts" : [ + "-Dgdk_pixbuf_moduledir=/app/lib/gdk-pixbuf-2.0/2.10.0/loaders/" + ], + "sources" : [ + { + "type" : "git", + "url" : "https://github.com/aruiz/webp-pixbuf-loader.git", + "tag" : "0.2.4" + } + ] + }, + { + "name" : "update-pixbuf-loaders", + "buildsystem" : "simple", + "build-commands" : [ + "GDK_PIXBUF_MODULEDIR=/app/lib/gdk-pixbuf-2.0/2.10.0/loaders/ gdk-pixbuf-query-loaders > /app/lib/gdk-pixbuf-2.0/2.10.0/loaders.cache", + "gdk-pixbuf-query-loaders >> /app/lib/gdk-pixbuf-2.0/2.10.0/loaders.cache" + ] + }, { "name": "blueprint-compiler", "builddir": true,