Add desktop file and icon to meson build script
This commit is contained in:
26
data/meson.build
Normal file
26
data/meson.build
Normal file
@@ -0,0 +1,26 @@
|
||||
desktop_conf = configuration_data()
|
||||
desktop_conf.set('NAME', meson.project_name())
|
||||
desktop_conf.set('ICON', application_id)
|
||||
desktop_conf.set('APP_ID', application_id)
|
||||
desktop_conf.set('EXEC', meson.project_name())
|
||||
|
||||
# Desktop file
|
||||
configure_file(
|
||||
input: '@0@.desktop.in'.format(application_id),
|
||||
output: '@BASENAME@',
|
||||
install: true,
|
||||
configuration: desktop_conf,
|
||||
install_dir: applicationsdir
|
||||
)
|
||||
|
||||
# Scalable icon
|
||||
install_data(
|
||||
'@0@.svg'.format(application_id),
|
||||
install_dir: iconsdir / 'hicolor' / 'scalable' / 'apps',
|
||||
)
|
||||
|
||||
# Symbolic icon
|
||||
install_data(
|
||||
'@0@-symbolic.svg'.format(application_id),
|
||||
install_dir: iconsdir / 'hicolor' / 'symbolic' / 'apps',
|
||||
)
|
||||
Reference in New Issue
Block a user