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