demo: Add GTK+ test application

This commit is contained in:
Bastien Nocera
2018-10-08 16:33:04 +02:00
parent f7173e6645
commit 29461fa910
8 changed files with 1127 additions and 0 deletions

View File

@@ -111,6 +111,15 @@ if get_option('x11-examples')
endif
endif
if get_option('gtk-examples')
gnome = import('gnome')
gtk_dep = dependency('gtk+-3.0', required: false)
if not gtk_dep.found()
error('GTK+ 3.x is required for GTK+ examples')
endif
endif
libfprint_conf.set('API_EXPORTED', '__attribute__((visibility("default")))')
configure_file(output: 'config.h', configuration: libfprint_conf)
@@ -120,6 +129,9 @@ if get_option('doc')
gnome = import('gnome')
subdir('doc')
endif
if get_option('gtk-examples')
subdir('demo')
endif
pkgconfig = import('pkgconfig')
pkgconfig.generate(