desktop = 'com.frac_tion.teleport.desktop' i18n.merge_file( input: desktop + '.in', output: desktop, type: 'desktop', po_dir: po_dir, install: true, install_dir: join_paths(teleport_datadir, 'applications') ) # Appdata file. appdata_file = i18n.merge_file( input: 'com.frac_tion.teleport.appdata.xml.in', output: 'com.frac_tion.teleport.appdata.xml', po_dir: po_dir, install: true, install_dir: join_paths(get_option('datadir'), 'appdata'), ) appstream_util = find_program('appstream-util', required: false) if appstream_util.found() test('Validate appstream file', appstream_util, # FIXME: Screenshots are wrong size for 'validate' args: ['validate-relax', appdata_file] ) endif #gnome.mkenums( # 'org.gtk.teleport.enums.xml', # sources: enum_headers, # comments: '', # fhead: '', # vhead: ' <@type@ id="org.gtk.teleport.@EnumName@">', # vprod: ' ', # vtail: ' ', # ftail: '', # install_header: true, # install_dir: teleport_schemadir #) schema_dir = join_paths(get_option('prefix'), get_option('datadir'), 'glib-2.0', 'schemas') install_data( 'com.frac_tion.teleport.gschema.xml', install_dir: schema_dir ) # Compile the schemas after installation glib_compiled_schemas = find_program('glib-compile-schemas', required: false) if glib_compiled_schemas.found() meson.add_install_script(glib_compiled_schemas, schema_dir) endif #subdir('appdata') subdir('icons')