2020-03-08 13:50:59 +00:00
|
|
|
gnome.compile_resources(
|
|
|
|
app_id + '.data',
|
2021-01-22 18:29:07 +00:00
|
|
|
base_id + '.data.gresource.xml',
|
2020-03-08 13:50:59 +00:00
|
|
|
gresource_bundle: true,
|
|
|
|
install: true,
|
|
|
|
install_dir: pkgdatadir
|
|
|
|
)
|
2020-03-08 14:04:46 +00:00
|
|
|
|
2020-04-01 04:18:05 +00:00
|
|
|
desktop_file = app_id + '.desktop'
|
2020-03-08 14:04:46 +00:00
|
|
|
desktopconf = configuration_data()
|
|
|
|
# We substitute in bindir so it works as an autostart
|
|
|
|
# file when built in a non-system prefix
|
|
|
|
desktopconf.set('bindir', bindir)
|
|
|
|
desktopconf.set('app_id', app_id)
|
|
|
|
desktopconf.set('prgname', prgname)
|
|
|
|
|
|
|
|
i18n.merge_file('desktop',
|
|
|
|
input: configure_file(
|
2021-01-22 18:29:07 +00:00
|
|
|
input: base_id + '.desktop.in.in',
|
2020-04-01 04:18:05 +00:00
|
|
|
output: desktop_file + '.in',
|
2020-03-08 14:04:46 +00:00
|
|
|
configuration: desktopconf
|
|
|
|
),
|
2020-04-01 04:18:05 +00:00
|
|
|
output: desktop_file,
|
2020-03-08 14:04:46 +00:00
|
|
|
po_dir: po_dir,
|
|
|
|
install: true,
|
|
|
|
install_dir: desktopdir,
|
|
|
|
type: 'desktop'
|
|
|
|
)
|
|
|
|
|
2020-04-01 04:18:05 +00:00
|
|
|
if (desktop_file_validate.found())
|
|
|
|
test('Validating ' + desktop_file,
|
|
|
|
desktop_file_validate,
|
|
|
|
args: [desktop_file],
|
|
|
|
workdir: meson.current_build_dir()
|
|
|
|
)
|
|
|
|
endif
|
|
|
|
|
2020-03-08 21:38:47 +00:00
|
|
|
configure_file(
|
2021-01-22 18:29:07 +00:00
|
|
|
input: base_id + '.service.in',
|
2020-03-08 21:38:47 +00:00
|
|
|
output: app_id + '.service',
|
|
|
|
configuration: desktopconf,
|
|
|
|
install_dir: servicedir,
|
|
|
|
)
|
|
|
|
|
2020-03-08 14:04:46 +00:00
|
|
|
subdir('icons')
|
2020-03-12 19:27:32 +00:00
|
|
|
subdir('metainfo')
|