mirror of
https://git.pwmt.org/pwmt/zathura.git
synced 2025-01-29 01:44:56 +01:00
Integrate appdata file into i18n infrastructure
This commit is contained in:
parent
75b95655e1
commit
9f482ab202
2 changed files with 19 additions and 2 deletions
|
@ -6,19 +6,28 @@ zathura_resources = gnome.compile_resources(
|
||||||
dependencies: files('zathura.css_t', 'org.pwmt.zathura.xml')
|
dependencies: files('zathura.css_t', 'org.pwmt.zathura.xml')
|
||||||
)
|
)
|
||||||
|
|
||||||
install_data('org.pwmt.zathura.appdata.xml', install_dir: metainfodir)
|
|
||||||
install_data('org.pwmt.zathura.xml', install_dir: dbusinterfacesdir)
|
install_data('org.pwmt.zathura.xml', install_dir: dbusinterfacesdir)
|
||||||
|
|
||||||
i18n = import('i18n')
|
i18n = import('i18n')
|
||||||
|
podir = join_paths(meson.source_root(), 'po')
|
||||||
|
|
||||||
desktop = i18n.merge_file('desktop',
|
desktop = i18n.merge_file('desktop',
|
||||||
input: 'org.pwmt.zathura.desktop.in',
|
input: 'org.pwmt.zathura.desktop.in',
|
||||||
output: 'org.pwmt.zathura.desktop',
|
output: 'org.pwmt.zathura.desktop',
|
||||||
install: true,
|
install: true,
|
||||||
install_dir: desktopdir,
|
install_dir: desktopdir,
|
||||||
po_dir: join_paths(meson.source_root(), 'po'),
|
po_dir: podir,
|
||||||
type: 'desktop'
|
type: 'desktop'
|
||||||
)
|
)
|
||||||
|
|
||||||
|
appdata = i18n.merge_file('appdata',
|
||||||
|
input: 'org.pwmt.zathura.appdata.xml.in',
|
||||||
|
output: 'org.pwmt.zathura.appdata.xml',
|
||||||
|
install: true,
|
||||||
|
install_dir: metainfodir,
|
||||||
|
po_dir: podir,
|
||||||
|
)
|
||||||
|
|
||||||
desktop_file_validate = find_program('desktop-file-validate', required: false)
|
desktop_file_validate = find_program('desktop-file-validate', required: false)
|
||||||
if desktop_file_validate.found()
|
if desktop_file_validate.found()
|
||||||
test('validate-desktop',
|
test('validate-desktop',
|
||||||
|
@ -26,3 +35,11 @@ if desktop_file_validate.found()
|
||||||
args: [desktop.full_path()]
|
args: [desktop.full_path()]
|
||||||
)
|
)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
appstream_util = find_program('appstream-util', required: false)
|
||||||
|
if appstream_util.found()
|
||||||
|
test('validate-appdata',
|
||||||
|
appstream_util,
|
||||||
|
args: ['validate-relax', appdata.full_path()]
|
||||||
|
)
|
||||||
|
endif
|
||||||
|
|
Loading…
Reference in a new issue