|
| 1 | +desktop_file = i18n.merge_file( |
| 2 | + input: 'org.gnome.siglo.desktop.in', |
| 3 | + output: 'org.gnome.siglo.desktop', |
| 4 | + type: 'desktop', |
| 5 | + po_dir: '../po', |
| 6 | + install: true, |
| 7 | + install_dir: join_paths(get_option('datadir'), 'applications') |
| 8 | +) |
| 9 | + |
| 10 | +desktop_utils = find_program('desktop-file-validate', required: false) |
| 11 | +if desktop_utils.found() |
| 12 | + test('Validate desktop file', desktop_utils, |
| 13 | + args: [desktop_file] |
| 14 | + ) |
| 15 | +endif |
| 16 | + |
| 17 | +appstream_file = i18n.merge_file( |
| 18 | + input: 'org.gnome.siglo.appdata.xml.in', |
| 19 | + output: 'org.gnome.siglo.appdata.xml', |
| 20 | + po_dir: '../po', |
| 21 | + install: true, |
| 22 | + install_dir: join_paths(get_option('datadir'), 'appdata') |
| 23 | +) |
| 24 | + |
| 25 | +appstream_util = find_program('appstream-util', required: false) |
| 26 | +if appstream_util.found() |
| 27 | + test('Validate appstream file', appstream_util, |
| 28 | + args: ['validate', appstream_file] |
| 29 | + ) |
| 30 | +endif |
| 31 | + |
| 32 | +install_data('org.gnome.siglo.gschema.xml', |
| 33 | + install_dir: join_paths(get_option('datadir'), 'glib-2.0/schemas') |
| 34 | +) |
| 35 | + |
| 36 | +compile_schemas = find_program('glib-compile-schemas', required: false) |
| 37 | +if compile_schemas.found() |
| 38 | + test('Validate schema file', compile_schemas, |
| 39 | + args: ['--strict', '--dry-run', meson.current_source_dir()] |
| 40 | + ) |
| 41 | +endif |
0 commit comments