Properly build aegisub.desktop

This commit is contained in:
FichteFoll 2019-07-23 02:07:55 +02:00 committed by Ryan Lucia
parent 9708ca8e5e
commit 443dd5146d
1 changed files with 11 additions and 4 deletions

View File

@ -4,9 +4,16 @@ c_pkg.set('AEGISUB_COMMAND', 'aegisub')
if host_machine.system() == 'windows'
elif host_machine.system() == 'darwin'
else
configure_file(input: 'desktop/aegisub.desktop.template.in',
desktop_template = configure_file(input: 'desktop/aegisub.desktop.template.in',
output: 'aegisub.desktop.template',
configuration: c_pkg)
intltool_merge = find_program('intltool-merge')
desktop = custom_target('aegisub.desktop',
input: desktop_template,
output: 'aegisub.desktop',
configuration: c_pkg,
command: [intltool_merge, '--desktop-style', '--quiet', '../po', '@INPUT@', '@OUTPUT@'],
install: true,
install_dir: get_option('datadir') / 'applications')
endif