2017-12-17 18:10:26 +00:00
|
|
|
subdir('icons')
|
|
|
|
|
2018-08-23 21:46:36 +00:00
|
|
|
desktop_conf = configuration_data()
|
|
|
|
desktop_conf.set('icon', application_id)
|
2019-01-09 18:37:32 +00:00
|
|
|
desktop_file = i18n.merge_file ('desktop-file',
|
2018-08-23 18:13:14 +00:00
|
|
|
type: 'desktop',
|
2018-08-23 21:46:36 +00:00
|
|
|
input: configure_file(
|
|
|
|
input: files('org.gnome.Fractal.desktop.in.in'),
|
|
|
|
output: 'org.gnome.Fractal.desktop.in',
|
|
|
|
configuration: desktop_conf
|
|
|
|
),
|
|
|
|
output: '@0@.desktop'.format(application_id),
|
2018-08-23 18:13:14 +00:00
|
|
|
po_dir: podir,
|
|
|
|
install: true,
|
|
|
|
install_dir: join_paths (datadir, 'applications')
|
|
|
|
)
|
2019-01-09 18:37:32 +00:00
|
|
|
desktop_file_validate = find_program('desktop-file-validate', required: false)
|
|
|
|
if desktop_file_validate.found()
|
|
|
|
test(
|
|
|
|
'validate-desktop',
|
|
|
|
desktop_file_validate,
|
|
|
|
args: [
|
|
|
|
desktop_file.full_path()
|
|
|
|
]
|
|
|
|
)
|
|
|
|
endif
|
|
|
|
|
2018-08-23 18:13:14 +00:00
|
|
|
|
2020-05-15 09:45:56 +00:00
|
|
|
metainfo_conf = configuration_data()
|
|
|
|
metainfo_conf.set('appid', application_id)
|
|
|
|
metainfo_file = i18n.merge_file ('metainfo-file',
|
2018-08-23 21:46:36 +00:00
|
|
|
input: configure_file(
|
2020-05-15 09:45:56 +00:00
|
|
|
input: files('org.gnome.Fractal.metainfo.xml.in.in'),
|
|
|
|
output: 'org.gnome.Fractal.metainfo.xml.in',
|
|
|
|
configuration: metainfo_conf
|
2018-08-23 21:46:36 +00:00
|
|
|
),
|
2020-05-15 09:45:56 +00:00
|
|
|
output: '@0@.metainfo.xml'.format(application_id),
|
2018-08-23 18:13:14 +00:00
|
|
|
po_dir: podir,
|
|
|
|
install: true,
|
2018-08-23 21:46:36 +00:00
|
|
|
install_dir: join_paths (datadir, 'metainfo')
|
2018-08-23 18:13:14 +00:00
|
|
|
)
|
2019-01-09 18:37:32 +00:00
|
|
|
appstream_util = find_program('appstream-util', required: false)
|
|
|
|
if appstream_util.found()
|
|
|
|
test(
|
2020-05-15 09:45:56 +00:00
|
|
|
'validate-metainfo', appstream_util,
|
2019-01-09 18:37:32 +00:00
|
|
|
args: [
|
2020-05-15 09:45:56 +00:00
|
|
|
'validate-relax', '--nonet', metainfo_file.full_path()
|
2019-01-09 18:37:32 +00:00
|
|
|
]
|
|
|
|
)
|
|
|
|
endif
|
2018-05-10 11:38:05 +00:00
|
|
|
install_data('org.gnome.Fractal.gschema.xml', install_dir: join_paths(get_option('datadir'), 'glib-2.0', 'schemas'))
|
2019-04-22 05:19:17 +00:00
|
|
|
|
|
|
|
fractal_resources = gnome.compile_resources(
|
|
|
|
'resources',
|
|
|
|
'resources.xml',
|
|
|
|
gresource_bundle: true,
|
2020-10-31 20:42:51 +00:00
|
|
|
source_dir: meson.current_build_dir(),
|
|
|
|
install: true,
|
|
|
|
install_dir: fractal_pkgdatadir
|
2019-04-22 05:19:17 +00:00
|
|
|
)
|