-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathmeson.build
29 lines (27 loc) · 1.19 KB
/
meson.build
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
if host_machine.system() == 'linux'
install_data('ZeGrapher.metainfo.xml', install_dir : get_option('datadir') / 'metainfo')
# https://www.freedesktop.org/software/appstream/docs/chap-Quickstart.html
zg_source_icons = [
'ZeGrapher_16.png',
'ZeGrapher_32.png',
'ZeGrapher_64.png',
'ZeGrapher_128.png',
'ZeGrapher_256.png',
'ZeGrapher.svg'
]
zg_dest_icons = [
'16x16/apps/ZeGrapher.png',
'32x32/apps/ZeGrapher.png',
'64x64/apps/ZeGrapher.png',
'128x128/apps/ZeGrapher.png',
'256x256/apps/ZeGrapher.png',
'scalable/apps/ZeGrapher.svg'
]
install_data(sources : zg_source_icons, install_dir : get_option('datadir') / 'icons/hicolor', rename : zg_dest_icons)
# https://specifications.freedesktop.org/icon-theme-spec/latest/ar01s07.html
install_data('ZeGrapher.desktop', install_dir : get_option('datadir') / 'applications')
# https://specifications.freedesktop.org/desktop-entry-spec/latest/ar01s02.html
elif host_machine.system() == 'darwin' # macos
install_data('ZeGrapher.icns', install_dir : 'Contents/Resources')
install_data('Info.plist', install_dir : 'Contents')
endif