The appdata file/directory name is deprecated. Also change the desktop component type to desktop-application. Same reason.
66 lines
1.6 KiB
Meson
66 lines
1.6 KiB
Meson
desktop_file = i18n.merge_file(
|
|
input: configure_file(
|
|
input: 'org.gnome.Loupe.desktop.in.in',
|
|
output: 'org.gnome.Loupe.desktop.in',
|
|
configuration: conf,
|
|
),
|
|
output: '@0@.desktop'.format(app_id),
|
|
type: 'desktop',
|
|
po_dir: '../po',
|
|
install: true,
|
|
install_dir: iv_datadir / 'applications'
|
|
)
|
|
|
|
configure_file(
|
|
input: 'org.gnome.Loupe.service.in',
|
|
output: '@0@.service'.format(app_id),
|
|
configuration: conf,
|
|
install: true,
|
|
install_dir: iv_datadir / 'dbus-1' / 'services'
|
|
)
|
|
|
|
desktop_utils = find_program('desktop-file-validate', required: false)
|
|
if desktop_utils.found()
|
|
test('Validate desktop file', desktop_utils,
|
|
args: [desktop_file]
|
|
)
|
|
endif
|
|
|
|
appstream_file = i18n.merge_file(
|
|
input: configure_file(
|
|
input: 'org.gnome.Loupe.metainfo.xml.in.in',
|
|
output: 'org.gnome.Loupe.metainfo.xml.in',
|
|
configuration: conf,
|
|
),
|
|
output: '@0@.metainfo.xml'.format(app_id),
|
|
po_dir: '../po',
|
|
install: true,
|
|
install_dir: iv_datadir / 'metainfo'
|
|
)
|
|
|
|
# appstream_util = find_program('appstream-util', required: false)
|
|
# if appstream_util.found()
|
|
# test('Validate appstream file', appstream_util,
|
|
# args: ['validate', appstream_file]
|
|
# )
|
|
# endif
|
|
|
|
install_data('org.gnome.Loupe.gschema.xml',
|
|
install_dir: iv_datadir / 'glib-2.0' / 'schemas'
|
|
)
|
|
|
|
compile_schemas = find_program('glib-compile-schemas', required: false)
|
|
if compile_schemas.found()
|
|
test('Validate schema file', compile_schemas,
|
|
args: ['--strict', '--dry-run', meson.current_source_dir()]
|
|
)
|
|
endif
|
|
|
|
gnome.compile_resources('loupe',
|
|
'loupe.gresource.xml',
|
|
gresource_bundle: true,
|
|
install: true,
|
|
install_dir: iv_pkgdatadir,
|
|
)
|
|
|
|
subdir('icons')
|