| 1 |
subdir('icons') |
| 2 |
|
| 3 |
desktop_conf = configuration_data() |
| 4 |
desktop_conf.set('icon', application_id) |
| 5 |
desktop_file = i18n.merge_file ( |
| 6 |
type: 'desktop', |
| 7 |
input: configure_file( |
| 8 |
input: files('org.gnome.Podcasts.desktop.in.in'), |
| 9 |
output: 'org.gnome.Podcasts.desktop.in', |
| 10 |
configuration: desktop_conf |
| 11 |
), |
| 12 |
output: '@[email protected]'.format(application_id), |
| 13 |
po_dir: podir, |
| 14 |
install: true, |
| 15 |
install_dir: join_paths (datadir, 'applications') |
| 16 |
) |
| 17 |
desktop_file_validate = find_program('desktop-file-validate', required: false) |
| 18 |
if desktop_file_validate.found() |
| 19 |
test( |
| 20 |
'validate-desktop', |
| 21 |
desktop_file_validate, |
| 22 |
args: [ |
| 23 |
desktop_file.full_path() |
| 24 |
] |
| 25 |
) |
| 26 |
endif |
| 27 |
|
| 28 |
appdata_conf = configuration_data() |
| 29 |
appdata_conf.set('appid', application_id) |
| 30 |
appdata_file = i18n.merge_file ( |
| 31 |
input: configure_file( |
| 32 |
input: files('org.gnome.Podcasts.appdata.xml.in.in'), |
| 33 |
output: 'org.gnome.Podcasts.appdata.xml.in', |
| 34 |
configuration: appdata_conf |
| 35 |
), |
| 36 |
output: '@[email protected]'.format(application_id), |
| 37 |
po_dir: podir, |
| 38 |
install: true, |
| 39 |
install_dir: join_paths (datadir, 'metainfo') |
| 40 |
) |
| 41 |
appstreamcli = find_program('appstreamcli', required: false) |
| 42 |
if appstreamcli.found() |
| 43 |
test( |
| 44 |
'validate-appdata', appstreamcli, |
| 45 |
args: [ |
| 46 |
'validate', '--no-net', '--explain', appdata_file.full_path() |
| 47 |
] |
| 48 |
) |
| 49 |
endif |
| 50 |
|
| 51 |
configure_file( |
| 52 |
input: 'org.gnome.Podcasts.gschema.xml.in', |
| 53 |
output: 'org.gnome.Podcasts.gschema.xml', |
| 54 |
configuration: podcasts_conf, |
| 55 |
install: true, |
| 56 |
install_dir: join_paths(datadir, 'glib-2.0', 'schemas') |
| 57 |
) |
| 58 |
|
| 59 |
configure_file( |
| 60 |
input: 'org.gnome.Podcasts.service.in', |
| 61 |
output: '@[email protected]'.format(application_id), |
| 62 |
configuration: podcasts_conf, |
| 63 |
install_dir: join_paths(datadir,'dbus-1', 'services') |
| 64 |
) |
| 65 |
|
| 66 |
podcasts_resources = gnome.compile_resources( |
| 67 |
'resources', |
| 68 |
'resources.xml', |
| 69 |
gresource_bundle: true, |
| 70 |
source_dir: meson.current_build_dir() |
| 71 |
)[0] |
| 72 |
|
| 73 |
# Validating schemas |
| 74 |
test('Validate schema file', gschemas, |
| 75 |
args: ['--strict', '--dry-run', meson.current_source_dir()] |
| 76 |
) |