diff options
author | Jakub Steiner <jimmac@gmail.com> | 2020-08-10 15:10:12 +0200 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2020-08-13 16:30:22 -0400 |
commit | df4c57c00131ec86efec66b871c16d474e1e4a4f (patch) | |
tree | 2cda8388b45e83e23664b3df4a41cf1d6525d31e /build-aux/flatpak | |
parent | 2b0e9542cba252f76add715d84ee29227c9d359e (diff) | |
download | gtk+-df4c57c00131ec86efec66b871c16d474e1e4a4f.tar.gz |
flatpak: builder options
- avoid vulkan from crashing the inspector
Diffstat (limited to 'build-aux/flatpak')
-rw-r--r-- | build-aux/flatpak/org.gtk.Demo4.json | 80 | ||||
-rw-r--r-- | build-aux/flatpak/org.gtk.IconBrowser4.json | 79 | ||||
-rw-r--r-- | build-aux/flatpak/org.gtk.WidgetFactory4.json | 9 |
3 files changed, 102 insertions, 66 deletions
diff --git a/build-aux/flatpak/org.gtk.Demo4.json b/build-aux/flatpak/org.gtk.Demo4.json index acc57b3750..9185fada49 100644 --- a/build-aux/flatpak/org.gtk.Demo4.json +++ b/build-aux/flatpak/org.gtk.Demo4.json @@ -1,29 +1,38 @@ { - "app-id": "org.gtk.Demo4", - "runtime": "org.gnome.Platform", - "runtime-version": "master", - "sdk": "org.gnome.Sdk", - "command": "gtk4-demo", - "tags": ["devel", "development", "nightly"], - "desktop-file-name-prefix": "(Development) ", - "finish-args": [ + "app-id" : "org.gtk.Demo4", + "runtime" : "org.gnome.Platform", + "runtime-version" : "master", + "sdk" : "org.gnome.Sdk", + "command" : "gtk4-demo", + "tags" : [ + "devel", + "development", + "nightly" + ], + "desktop-file-name-prefix" : "(Development) ", + "finish-args" : [ "--device=dri", "--share=ipc", "--socket=fallback-x11", "--socket=wayland", - "--talk-name=org.gtk.vfs", "--talk-name=org.gtk.vfs.*" + "--talk-name=org.gtk.vfs", + "--talk-name=org.gtk.vfs.*" ], - "cleanup": [ + "cleanup" : [ "/include", - "/lib/pkgconfig", "/share/pkgconfig", + "/lib/pkgconfig", + "/share/pkgconfig", "/share/aclocal", - "/man", "/share/man", "/share/gtk-doc", - "*.la", ".a", + "/man", + "/share/man", + "/share/gtk-doc", + "*.la", + ".a", "/lib/girepository-1.0", "/share/gir-1.0", "/share/doc" ], - "modules": [ + "modules" : [ { "name" : "wayland", "buildsystem" : "autotools", @@ -39,18 +48,18 @@ ] }, { - "name": "graphene", - "buildsystem": "meson", - "builddir": true, - "config-opts": [ + "name" : "graphene", + "buildsystem" : "meson", + "builddir" : true, + "config-opts" : [ "--libdir=/app/lib", "-Dtests=false", "-Dbenchmarks=false" ], - "sources": [ + "sources" : [ { - "type": "git", - "url": "https://github.com/ebassi/graphene.git" + "type" : "git", + "url" : "https://github.com/ebassi/graphene.git" } ] }, @@ -58,7 +67,7 @@ "name" : "libsass", "buildsystem" : "meson", "builddir" : true, - "config-opts": [ + "config-opts" : [ "--libdir=/app/lib" ], "sources" : [ @@ -73,7 +82,7 @@ "name" : "sassc", "buildsystem" : "meson", "builddir" : true, - "config-opts": [ + "config-opts" : [ "--libdir=/app/lib" ], "sources" : [ @@ -85,18 +94,25 @@ ] }, { - "name": "gtk", - "buildsystem": "meson", - "builddir": true, - "config-opts": [ - "--libdir=/app/lib" + "name" : "gtk", + "buildsystem" : "meson", + "builddir" : true, + "config-opts" : [ + "--libdir=/app/lib", + "-Denable_vulkan=no", + "-Dbuildtype=debugoptimized" ], - "sources": [ + "sources" : [ { - "type": "git", - "url": "https://gitlab.gnome.org/GNOME/gtk.git" + "type" : "git", + "url" : "https://gitlab.gnome.org/GNOME/gtk.git" } ] } - ] + ], + "build-options" : { + "env" : { + "GSK_RENDERER" : "opengl" + } + } } diff --git a/build-aux/flatpak/org.gtk.IconBrowser4.json b/build-aux/flatpak/org.gtk.IconBrowser4.json index cdeaf6f1c9..d6bce54eb8 100644 --- a/build-aux/flatpak/org.gtk.IconBrowser4.json +++ b/build-aux/flatpak/org.gtk.IconBrowser4.json @@ -1,29 +1,38 @@ { - "app-id": "org.gtk.IconBrowser4", - "runtime": "org.gnome.Platform", - "runtime-version": "master", - "sdk": "org.gnome.Sdk", - "command": "gtk4-icon-browser", - "tags": ["devel", "development", "nightly"], - "desktop-file-name-prefix": "(Development) ", - "finish-args": [ + "app-id" : "org.gtk.IconBrowser4", + "runtime" : "org.gnome.Platform", + "runtime-version" : "master", + "sdk" : "org.gnome.Sdk", + "command" : "gtk4-icon-browser", + "tags" : [ + "devel", + "development", + "nightly" + ], + "desktop-file-name-prefix" : "(Development) ", + "finish-args" : [ "--device=dri", "--share=ipc", "--socket=fallback-x11", "--socket=wayland", - "--talk-name=org.gtk.vfs", "--talk-name=org.gtk.vfs.*" + "--talk-name=org.gtk.vfs", + "--talk-name=org.gtk.vfs.*" ], - "cleanup": [ + "cleanup" : [ "/include", - "/lib/pkgconfig", "/share/pkgconfig", + "/lib/pkgconfig", + "/share/pkgconfig", "/share/aclocal", - "/man", "/share/man", "/share/gtk-doc", - "*.la", ".a", + "/man", + "/share/man", + "/share/gtk-doc", + "*.la", + ".a", "/lib/girepository-1.0", "/share/gir-1.0", "/share/doc" ], - "modules": [ + "modules" : [ { "name" : "wayland", "buildsystem" : "autotools", @@ -39,18 +48,18 @@ ] }, { - "name": "graphene", - "buildsystem": "meson", - "builddir": true, - "config-opts": [ + "name" : "graphene", + "buildsystem" : "meson", + "builddir" : true, + "config-opts" : [ "--libdir=/app/lib", "-Dtests=false", "-Dbenchmarks=false" ], - "sources": [ + "sources" : [ { - "type": "git", - "url": "https://github.com/ebassi/graphene.git" + "type" : "git", + "url" : "https://github.com/ebassi/graphene.git" } ] }, @@ -58,7 +67,7 @@ "name" : "libsass", "buildsystem" : "meson", "builddir" : true, - "config-opts": [ + "config-opts" : [ "--libdir=/app/lib" ], "sources" : [ @@ -73,7 +82,7 @@ "name" : "sassc", "buildsystem" : "meson", "builddir" : true, - "config-opts": [ + "config-opts" : [ "--libdir=/app/lib" ], "sources" : [ @@ -85,18 +94,24 @@ ] }, { - "name": "gtk", - "buildsystem": "meson", - "builddir": true, - "config-opts": [ - "--libdir=/app/lib" + "name" : "gtk", + "buildsystem" : "meson", + "builddir" : true, + "config-opts" : [ + "--libdir=/app/lib", + "-Denable_vulkan=no", + "-Dbuildtype=debugoptimized" ], - "sources": [ + "sources" : [ { - "type": "git", - "url": "https://gitlab.gnome.org/GNOME/gtk.git" + "type" : "git", + "url" : "https://gitlab.gnome.org/GNOME/gtk.git" } ] } - ] + ], + "build-options" : { + "env" : { + } + } } diff --git a/build-aux/flatpak/org.gtk.WidgetFactory4.json b/build-aux/flatpak/org.gtk.WidgetFactory4.json index 3a729087cf..dbaee92474 100644 --- a/build-aux/flatpak/org.gtk.WidgetFactory4.json +++ b/build-aux/flatpak/org.gtk.WidgetFactory4.json @@ -98,7 +98,9 @@ "buildsystem" : "meson", "builddir" : true, "config-opts" : [ - "--libdir=/app/lib" + "--libdir=/app/lib", + "-Denable_vulkan=no", + "-Dbuildtype=debugoptimized" ], "sources" : [ { @@ -110,7 +112,10 @@ ], "build-options" : { "env" : { - "DBUS_SESSION_BUS_ADDRESS" : "''" + "DBUS_SESSION_BUS_ADDRESS" : "''", + "GSK_RENDERER" : "opengl", + "GDK_DEBUG" : "vulkan-disable", + "G_ENABLE_DEBUG" : "true" } } } |