|
| 1 | +desktop_file = i18n.merge_file( |
| 2 | + input: 'moe.nyarchlinux.scripts.desktop.in', |
| 3 | + output: 'moe.nyarchlinux.scripts.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, args: [desktop_file]) |
| 13 | +endif |
| 14 | + |
| 15 | +appstream_file = i18n.merge_file( |
| 16 | + input: 'moe.nyarchlinux.scripts.appdata.xml.in', |
| 17 | + output: 'moe.nyarchlinux.scripts.appdata.xml', |
| 18 | + po_dir: '../po', |
| 19 | + install: true, |
| 20 | + install_dir: join_paths(get_option('datadir'), 'appdata') |
| 21 | +) |
| 22 | + |
| 23 | +appstream_util = find_program('appstream-util', required: false) |
| 24 | +if appstream_util.found() |
| 25 | + test('Validate appstream file', appstream_util, args: ['validate', appstream_file]) |
| 26 | +endif |
| 27 | + |
| 28 | +install_data('moe.nyarchlinux.scripts.gschema.xml', |
| 29 | + install_dir: join_paths(get_option('datadir'), 'glib-2.0/schemas') |
| 30 | +) |
| 31 | + |
| 32 | +compile_schemas = find_program('glib-compile-schemas', required: false) |
| 33 | +if compile_schemas.found() |
| 34 | + test('Validate schema file', |
| 35 | + compile_schemas, |
| 36 | + args: ['--strict', '--dry-run', meson.current_source_dir()]) |
| 37 | +endif |
| 38 | + |
| 39 | +subdir('icons') |
0 commit comments