2020-12-26 02:05:34 -08:00
|
|
|
desktop_file = i18n.merge_file(
|
|
|
|
|
input: configure_file(
|
2021-09-28 17:44:26 -07:00
|
|
|
input: 'org.gnome.Loupe.desktop.in.in',
|
|
|
|
|
output: 'org.gnome.Loupe.desktop.in',
|
2020-12-26 02:05:34 -08:00
|
|
|
configuration: conf,
|
|
|
|
|
),
|
|
|
|
|
output: '@0@.desktop'.format(app_id),
|
|
|
|
|
type: 'desktop',
|
|
|
|
|
po_dir: '../po',
|
|
|
|
|
install: true,
|
2022-08-05 00:21:23 -04:00
|
|
|
install_dir: iv_datadir / 'applications'
|
2020-12-26 02:05:34 -08:00
|
|
|
)
|
|
|
|
|
|
|
|
|
|
configure_file(
|
2021-09-28 17:44:26 -07:00
|
|
|
input: 'org.gnome.Loupe.service.in',
|
2020-12-26 02:05:34 -08:00
|
|
|
output: '@0@.service'.format(app_id),
|
|
|
|
|
configuration: conf,
|
|
|
|
|
install: true,
|
2022-08-05 00:21:23 -04:00
|
|
|
install_dir: iv_datadir / 'dbus-1' / 'services'
|
2020-12-26 02:05:34 -08:00
|
|
|
)
|
|
|
|
|
|
|
|
|
|
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(
|
2021-09-28 17:44:26 -07:00
|
|
|
input: 'org.gnome.Loupe.appdata.xml.in.in',
|
|
|
|
|
output: 'org.gnome.Loupe.appdata.xml.in',
|
2020-12-26 02:05:34 -08:00
|
|
|
configuration: conf,
|
|
|
|
|
),
|
|
|
|
|
output: '@0@.appdata.xml'.format(app_id),
|
|
|
|
|
po_dir: '../po',
|
|
|
|
|
install: true,
|
2022-08-05 00:21:23 -04:00
|
|
|
install_dir: iv_datadir / 'appdata'
|
2020-12-26 02:05:34 -08:00
|
|
|
)
|
|
|
|
|
|
2020-12-29 20:29:08 -08:00
|
|
|
# appstream_util = find_program('appstream-util', required: false)
|
|
|
|
|
# if appstream_util.found()
|
|
|
|
|
# test('Validate appstream file', appstream_util,
|
|
|
|
|
# args: ['validate', appstream_file]
|
|
|
|
|
# )
|
|
|
|
|
# endif
|
2020-12-26 02:05:34 -08:00
|
|
|
|
2021-09-28 17:44:26 -07:00
|
|
|
install_data('org.gnome.Loupe.gschema.xml',
|
2022-08-05 00:21:23 -04:00
|
|
|
install_dir: iv_datadir / 'glib-2.0' / 'schemas'
|
2020-12-26 02:05:34 -08:00
|
|
|
)
|
|
|
|
|
|
|
|
|
|
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
|
|
|
|
|
|
2021-09-28 17:44:26 -07:00
|
|
|
gnome.compile_resources('loupe',
|
|
|
|
|
'loupe.gresource.xml',
|
2020-12-26 02:05:34 -08:00
|
|
|
gresource_bundle: true,
|
|
|
|
|
install: true,
|
|
|
|
|
install_dir: iv_pkgdatadir,
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
subdir('icons')
|