demo: Add Flatpak manifest for the demo application

This commit is contained in:
Bastien Nocera
2018-11-19 13:36:22 +01:00
parent 29461fa910
commit 702932c69b
5 changed files with 102 additions and 0 deletions

View File

@@ -4,6 +4,7 @@ gtk_test_resources = gnome.compile_resources('gtk-test-resources', 'gtk-libfprin
prefix = get_option('prefix')
bindir = join_paths(prefix, get_option('bindir'))
datadir = join_paths(prefix, get_option('datadir'))
executable('gtk-libfprint-test',
[ 'gtk-libfprint-test.c', 'loop.c', 'loop.h', gtk_test_resources ],
@@ -15,3 +16,15 @@ executable('gtk-libfprint-test',
'-DPACKAGE_VERSION="' + meson.project_version() + '"' ],
install: true,
install_dir: bindir)
appdata = 'org.freedesktop.libfprint.Demo.appdata.xml'
install_data(appdata,
install_dir: join_paths(datadir, 'metainfo'))
desktop = 'org.freedesktop.libfprint.Demo.desktop'
install_data(desktop,
install_dir: join_paths(datadir, 'applications'))
icon = 'org.freedesktop.libfprint.Demo.png'
install_data(icon,
install_dir: join_paths(datadir, 'icons'))