2020-03-08 14:50:59 +01:00
|
|
|
gnome.compile_resources(
|
|
|
|
app_id + '.data',
|
2022-01-05 14:51:53 +01:00
|
|
|
configure_file(
|
|
|
|
input: base_id + '.data.gresource.xml.in',
|
|
|
|
output: app_id + '.data.gresource.xml',
|
|
|
|
configuration: {'profile': '/'.join(profile.split('.')) },
|
|
|
|
),
|
2020-03-08 14:50:59 +01:00
|
|
|
gresource_bundle: true,
|
|
|
|
install: true,
|
|
|
|
install_dir: pkgdatadir
|
|
|
|
)
|
2020-03-08 15:04:46 +01:00
|
|
|
|
2020-04-01 06:18:05 +02:00
|
|
|
desktop_file = app_id + '.desktop'
|
2020-03-08 15:04:46 +01: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)
|
|
|
|
|
2021-12-23 17:18:16 +01:00
|
|
|
i18n.merge_file(
|
2020-03-08 15:04:46 +01:00
|
|
|
input: configure_file(
|
2021-01-22 19:29:07 +01:00
|
|
|
input: base_id + '.desktop.in.in',
|
2020-04-01 06:18:05 +02:00
|
|
|
output: desktop_file + '.in',
|
2020-03-08 15:04:46 +01:00
|
|
|
configuration: desktopconf
|
|
|
|
),
|
2020-04-01 06:18:05 +02:00
|
|
|
output: desktop_file,
|
2020-03-08 15:04:46 +01:00
|
|
|
po_dir: po_dir,
|
|
|
|
install: true,
|
|
|
|
install_dir: desktopdir,
|
|
|
|
type: 'desktop'
|
|
|
|
)
|
|
|
|
|
2020-04-01 06:18:05 +02: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 22:38:47 +01:00
|
|
|
configure_file(
|
2021-01-22 19:29:07 +01:00
|
|
|
input: base_id + '.service.in',
|
2020-03-08 22:38:47 +01:00
|
|
|
output: app_id + '.service',
|
|
|
|
configuration: desktopconf,
|
|
|
|
install_dir: servicedir,
|
|
|
|
)
|
|
|
|
|
2020-03-08 15:04:46 +01:00
|
|
|
subdir('icons')
|
2020-03-12 20:27:32 +01:00
|
|
|
subdir('metainfo')
|