2017-11-15 19:20:08 +01:00
|
|
|
c_pkg = configuration_data()
|
|
|
|
c_pkg.set('AEGISUB_COMMAND', 'aegisub')
|
|
|
|
|
|
|
|
if host_machine.system() == 'windows'
|
|
|
|
elif host_machine.system() == 'darwin'
|
|
|
|
else
|
2019-01-30 22:58:31 +01:00
|
|
|
configure_file(input: 'desktop/aegisub.desktop.template.in',
|
|
|
|
output: 'aegisub.desktop',
|
|
|
|
configuration: c_pkg,
|
2019-01-30 23:07:39 +01:00
|
|
|
install_dir: get_option('datadir') / 'applications')
|
2017-11-15 19:20:08 +01:00
|
|
|
endif
|
|
|
|
|
2019-02-12 01:28:58 +01:00
|
|
|
aegisub_logos = ['16x16.png', '22x22.png', '24x24.png', '32x32.png', '48x48.png', '64x64.png', 'scalable.svg']
|
|
|
|
|
|
|
|
foreach s: aegisub_logos
|
2017-11-15 19:20:08 +01:00
|
|
|
dir = s.split('.')[0]
|
|
|
|
ext = s.split('.')[1]
|
2019-02-12 01:28:58 +01:00
|
|
|
install_data('desktop' / dir / 'aegisub.' + ext,
|
2019-01-30 23:07:39 +01:00
|
|
|
install_dir: get_option('datadir') / 'icons' / 'hicolor' / dir / 'apps')
|
2017-11-15 19:20:08 +01:00
|
|
|
endforeach
|