mirror of
https://gitlab.gnome.org/GNOME/calls.git
synced 2025-01-06 11:35:32 +00:00
meson: allow internationalization of desktop files
This commit is contained in:
parent
b2176be8c6
commit
f6f9e3f039
4 changed files with 19 additions and 5 deletions
|
@ -2,11 +2,23 @@ datadir = get_option('datadir')
|
|||
sysconfdir = get_option('sysconfdir')
|
||||
|
||||
# Desktop file
|
||||
install_data('sm.puri.Calls.desktop',
|
||||
install_dir : join_paths(datadir, 'applications'))
|
||||
install_data('sm.puri.Calls-daemon.desktop',
|
||||
rename : 'sm.puri.Calls.desktop',
|
||||
install_dir : join_paths(sysconfdir, 'xdg/autostart'))
|
||||
desktop_file = i18n.merge_file(
|
||||
input : 'sm.puri.Calls.desktop.in',
|
||||
output : 'sm.puri.Calls.desktop',
|
||||
type : 'desktop',
|
||||
po_dir : '../po',
|
||||
install : true,
|
||||
install_dir : join_paths(datadir, 'applications')
|
||||
)
|
||||
|
||||
desktop_file = i18n.merge_file(
|
||||
input : 'sm.puri.Calls-daemon.desktop.in',
|
||||
output : 'sm.puri.Calls-daemon.desktop',
|
||||
type : 'desktop',
|
||||
po_dir : '../po',
|
||||
install : true,
|
||||
install_dir : join_paths(sysconfdir, 'xdg/autostart')
|
||||
)
|
||||
|
||||
desktop_utils = find_program('desktop-file-validate', required: false)
|
||||
if desktop_utils.found()
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
data/sm.puri.Calls.desktop.in
|
||||
data/sm.puri.Calls-daemon.desktop.in
|
||||
src/calls-application.c
|
||||
src/calls-best-match.c
|
||||
src/calls-call.c
|
||||
|
|
Loading…
Reference in a new issue