if not ['linux'].contains(host_machine.system()) subdir_done() endif appstream_util = find_program('appstream-util', required: false) if appstream_util.found() test('Validate appstream file', appstream_util, args: [ 'validate-relax', '--nonet', join_paths(meson.current_source_dir(), 'metainfo', 'com.github.rafostar.Clapper.metainfo.xml'), ] ) endif glib_compile_schemas = find_program('glib-compile-schemas', required: false) if glib_compile_schemas.found() test('Validate gsettings schemas', glib_compile_schemas, args: [ '--strict', '--dry-run', join_paths(meson.current_source_dir(), 'glib-2.0', 'schemas'), ] ) endif install_subdir('icons', install_dir: join_paths(prefix, datadir) ) install_subdir('mime', install_dir: join_paths(prefix, datadir) ) install_subdir('applications', install_dir: join_paths(prefix, datadir) ) install_subdir('metainfo', install_dir: join_paths(prefix, datadir) ) subdir('glib-2.0/schemas') subdir('dbus-1') gnome.post_install( glib_compile_schemas: true, gtk_update_icon_cache: true, update_desktop_database: true, update_mime_database: true, )