From 1873304e7b736e37d65dfc300962c589db8a31a6 Mon Sep 17 00:00:00 2001 From: Emmanuele Bassi Date: Tue, 20 Mar 2018 16:07:38 +0000 Subject: [PATCH] Add flatpak builder manifests for our demos We can use manifests as targets when building GTK inside a flatpak environment; or we can use them for CI purposes. --- build-aux/flatpak/org.gtk.Demo.json | 59 ++++++++++++++++++++ build-aux/flatpak/org.gtk.WidgetFactory.json | 59 ++++++++++++++++++++ 2 files changed, 118 insertions(+) create mode 100644 build-aux/flatpak/org.gtk.Demo.json create mode 100644 build-aux/flatpak/org.gtk.WidgetFactory.json diff --git a/build-aux/flatpak/org.gtk.Demo.json b/build-aux/flatpak/org.gtk.Demo.json new file mode 100644 index 0000000000..fb5e277743 --- /dev/null +++ b/build-aux/flatpak/org.gtk.Demo.json @@ -0,0 +1,59 @@ +{ + "app-id": "org.gtk.Demo", + "runtime": "org.gnome.Platform", + "runtime-version": "master", + "sdk": "org.gnome.Sdk", + "command": "gtk4-demo", + "tags": ["devel", "development", "nightly"], + "rename-desktop-file": "gtk4-demo.desktop", + "rename-icon": "gtk4-demo", + "desktop-file-name-prefix": "(Development) ", + "finish-args": [ + "--device=dri", + "--share=ipc", + "--socket=x11", + "--socket=wayland", + "--talk-name=org.gtk.vfs", "--talk-name=org.gtk.vfs.*", + "--talk-name=ca.desrt.conf", "--env=DCONF_USER_CONFIG_DIR=.config/dconf" + ], + "cleanup": [ + "/include", + "/lib/pkgconfig", "/share/pkgconfig", + "/share/aclocal", + "/man", "/share/man", "/share/gtk-doc", + "*.la", ".a", + "/lib/girepository-1.0", + "/share/gir-1.0", + "/share/doc" + ], + "modules": [ + { + "name": "graphene", + "buildsystem": "meson", + "builddir": true, + "config-opts": [ + "--libdir=/app/lib" + ], + "sources": [ + { + "type": "git", + "url": "https://github.com/ebassi/graphene.git" + } + ] + }, + { + "name": "gtk", + "buildsystem": "meson", + "builddir": true, + "config-opts": [ + "--libdir=/app/lib" + ], + "sources": [ + { + "type": "git", + "url": "https://gitlab.gnome.org/GNOME/gtk.git" + } + ] + } + ] +} diff --git a/build-aux/flatpak/org.gtk.WidgetFactory.json b/build-aux/flatpak/org.gtk.WidgetFactory.json new file mode 100644 index 0000000000..fbd4789641 --- /dev/null +++ b/build-aux/flatpak/org.gtk.WidgetFactory.json @@ -0,0 +1,59 @@ +{ + "app-id": "org.gtk.WidgetFactory", + "runtime": "org.gnome.Platform", + "runtime-version": "master", + "sdk": "org.gnome.Sdk", + "command": "gtk4-widget-factory", + "tags": ["devel", "development", "nightly"], + "rename-desktop-file": "gtk4-widget-factory.desktop", + "rename-icon": "gtk4-widget-factory", + "desktop-file-name-prefix": "(Development) ", + "finish-args": [ + "--device=dri", + "--share=ipc", + "--socket=x11", + "--socket=wayland", + "--talk-name=org.gtk.vfs", "--talk-name=org.gtk.vfs.*", + "--talk-name=ca.desrt.conf", "--env=DCONF_USER_CONFIG_DIR=.config/dconf" + ], + "cleanup": [ + "/include", + "/lib/pkgconfig", "/share/pkgconfig", + "/share/aclocal", + "/man", "/share/man", "/share/gtk-doc", + "*.la", ".a", + "/lib/girepository-1.0", + "/share/gir-1.0", + "/share/doc" + ], + "modules": [ + { + "name": "graphene", + "buildsystem": "meson", + "builddir": true, + "config-opts": [ + "--libdir=/app/lib" + ], + "sources": [ + { + "type": "git", + "url": "https://github.com/ebassi/graphene.git" + } + ] + }, + { + "name": "gtk", + "buildsystem": "meson", + "builddir": true, + "config-opts": [ + "--libdir=/app/lib" + ], + "sources": [ + { + "type": "git", + "url": "https://gitlab.gnome.org/GNOME/gtk.git" + } + ] + } + ] +}