mirror of
https://gitlab.gnome.org/GNOME/calls.git
synced 2025-01-07 20:35:31 +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')
|
sysconfdir = get_option('sysconfdir')
|
||||||
|
|
||||||
# Desktop file
|
# Desktop file
|
||||||
install_data('sm.puri.Calls.desktop',
|
desktop_file = i18n.merge_file(
|
||||||
install_dir : join_paths(datadir, 'applications'))
|
input : 'sm.puri.Calls.desktop.in',
|
||||||
install_data('sm.puri.Calls-daemon.desktop',
|
output : 'sm.puri.Calls.desktop',
|
||||||
rename : 'sm.puri.Calls.desktop',
|
type : 'desktop',
|
||||||
install_dir : join_paths(sysconfdir, 'xdg/autostart'))
|
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)
|
desktop_utils = find_program('desktop-file-validate', required: false)
|
||||||
if desktop_utils.found()
|
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-application.c
|
||||||
src/calls-best-match.c
|
src/calls-best-match.c
|
||||||
src/calls-call.c
|
src/calls-call.c
|
||||||
|
|
Loading…
Reference in a new issue