2019-11-21 19:37:17 +00:00
|
|
|
gtk_test_resources = gnome.compile_resources('gtk-test-resources',
|
|
|
|
'gtk-libfprint-test.gresource.xml',
|
|
|
|
source_dir : '.',
|
|
|
|
c_name : 'gtk_test')
|
2018-10-08 14:33:04 +00:00
|
|
|
|
|
|
|
prefix = get_option('prefix')
|
|
|
|
bindir = join_paths(prefix, get_option('bindir'))
|
2018-11-19 12:36:22 +00:00
|
|
|
datadir = join_paths(prefix, get_option('datadir'))
|
2018-10-08 14:33:04 +00:00
|
|
|
|
|
|
|
executable('gtk-libfprint-test',
|
2019-11-21 19:37:17 +00:00
|
|
|
[ 'gtk-libfprint-test.c', gtk_test_resources ],
|
2019-12-13 18:33:12 +00:00
|
|
|
dependencies: [
|
|
|
|
gtk_dep,
|
|
|
|
libfprint_dep,
|
|
|
|
],
|
2019-12-04 11:32:14 +00:00
|
|
|
c_args: '-DPACKAGE_VERSION="' + meson.project_version() + '"',
|
2019-11-21 19:37:17 +00:00
|
|
|
install: true,
|
|
|
|
install_dir: bindir)
|
2018-11-19 12:36:22 +00:00
|
|
|
|
|
|
|
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'))
|