|
| 1 | +app_icon_dir = join_paths(datadir, 'icons', 'hicolor', 'scalable', 'apps') |
| 2 | +category_icon_dir = join_paths(datadir, 'icons', 'hicolor', 'scalable', 'categories') |
| 3 | +schema_dir = join_paths(datadir, 'glib-2.0', 'schemas') |
| 4 | +# message(f'Icon dir: @app_icon_dir@') |
| 5 | +# message(f'Schema dir: @schema_dir@') |
| 6 | + |
| 7 | +# install icons |
| 8 | +install_emptydir(app_icon_dir) |
| 9 | +install_data( |
| 10 | + join_paths(meson.current_source_dir(), 'icons', f'@application_id@.svg'), |
| 11 | + install_dir: app_icon_dir, |
| 12 | +) |
| 13 | + |
| 14 | +install_data( |
| 15 | + join_paths(meson.current_source_dir(), 'icons/categories/applications-webapps.svg'), |
| 16 | + install_dir: category_icon_dir, |
| 17 | +) |
| 18 | + |
| 19 | + |
| 20 | +# Install desktop file |
| 21 | +# desktop_file = i18n.merge_file( |
| 22 | +# input: 'webapp-manager.desktop.in', |
| 23 | +# output: 'webapp-manager.desktop', |
| 24 | +# type: 'desktop', |
| 25 | +# po_dir: '../po', |
| 26 | +# install: true, |
| 27 | +# install_dir: desktop_dir |
| 28 | +# ) |
| 29 | + |
| 30 | +# Install schema file |
| 31 | +schema_file = i18n.merge_file( |
| 32 | + input: 'org.x.webapp-manager.gschema.xml.in', |
| 33 | + output: 'org.x.webapp-manager.gschema.xml', |
| 34 | + type: 'xml', |
| 35 | + po_dir: '../po', |
| 36 | + install: true, |
| 37 | + install_dir: schema_dir |
| 38 | +) |
| 39 | + |
| 40 | +compile_schemas = find_program('glib-compile-schemas', required: false) |
| 41 | +if compile_schemas.found() |
| 42 | + test('Validate schema file', |
| 43 | + compile_schemas, |
| 44 | + args: ['--strict', '--dry-run', meson.current_source_dir()]) |
| 45 | +endif |
0 commit comments