2018-02-10 13:13:06 +01:00
|
|
|
gnome = import('gnome')
|
|
|
|
zathura_resources = gnome.compile_resources(
|
|
|
|
'resources',
|
|
|
|
'zathura.gresource.xml',
|
|
|
|
c_name: 'zathura_resources',
|
|
|
|
dependencies: files('zathura.css_t', 'org.pwmt.zathura.xml')
|
|
|
|
)
|
|
|
|
|
|
|
|
install_data('org.pwmt.zathura.xml', install_dir: dbusinterfacesdir)
|
2018-02-25 22:11:37 +01:00
|
|
|
install_data('org.pwmt.zathura.png', install_dir: join_paths(datadir, 'icons', 'hicolor', '128x128'))
|
2018-02-25 18:39:03 +01:00
|
|
|
|
|
|
|
i18n = import('i18n')
|
2018-02-25 19:59:36 +01:00
|
|
|
podir = join_paths(meson.source_root(), 'po')
|
|
|
|
|
2018-02-25 19:49:08 +01:00
|
|
|
desktop = i18n.merge_file('desktop',
|
2018-02-25 19:47:50 +01:00
|
|
|
input: 'org.pwmt.zathura.desktop.in',
|
|
|
|
output: 'org.pwmt.zathura.desktop',
|
2018-02-25 18:39:03 +01:00
|
|
|
install: true,
|
|
|
|
install_dir: desktopdir,
|
2018-02-25 19:59:36 +01:00
|
|
|
po_dir: podir,
|
2018-02-25 18:39:03 +01:00
|
|
|
type: 'desktop'
|
|
|
|
)
|
2018-02-25 19:49:08 +01:00
|
|
|
|
2018-02-25 19:59:36 +01:00
|
|
|
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,
|
|
|
|
)
|
|
|
|
|
2018-02-25 19:49:08 +01:00
|
|
|
desktop_file_validate = find_program('desktop-file-validate', required: false)
|
|
|
|
if desktop_file_validate.found()
|
|
|
|
test('validate-desktop',
|
|
|
|
desktop_file_validate,
|
|
|
|
args: [desktop.full_path()]
|
|
|
|
)
|
|
|
|
endif
|
2018-02-25 19:59:36 +01:00
|
|
|
|
|
|
|
appstream_util = find_program('appstream-util', required: false)
|
|
|
|
if appstream_util.found()
|
|
|
|
test('validate-appdata',
|
|
|
|
appstream_util,
|
|
|
|
args: ['validate-relax', appdata.full_path()]
|
|
|
|
)
|
|
|
|
endif
|