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
|
|
|
|
2018-08-23 21:46:36 +00:00
|
|
|
appdata_conf = configuration_data()
|
|
|
|
appdata_conf.set('appid', application_id)
|
2019-01-09 18:37:32 +00:00
|
|
|
appdata_file = i18n.merge_file ('appdata-file',
|
2018-08-23 21:46:36 +00:00
|
|
|
input: configure_file(
|
|
|
|
input: files('org.gnome.Fractal.appdata.xml.in.in'),
|
|
|
|
output: 'org.gnome.Fractal.appdata.xml.in',
|
|
|
|
configuration: appdata_conf
|
|
|
|
),
|
|
|
|
output: '@0@.appdata.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(
|
|
|
|
'validate-appdata', appstream_util,
|
|
|
|
args: [
|
|
|
|
'validate-relax', '--nonet', appdata_file.full_path()
|
|
|
|
]
|
|
|
|
)
|
|
|
|
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,
|
|
|
|
source_dir: meson.current_build_dir()
|
|
|
|
)
|