-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmeson.build
53 lines (44 loc) · 1.2 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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
project (
'co.tauos.Hydrogen',
version: '0.1.0',
license : 'GPL3+'
)
i18n = import('i18n')
icon_folder = join_paths(meson.source_root(), 'Hydrogen')
icon_sys_dir = join_paths(get_option('datadir'), 'icons')
icon_dir = join_paths(get_option('datadir'), 'icons', 'Hydrogen')
symlink = join_paths(meson.source_root (), 'meson', 'symlink.py')
# Let's do fancy things
msg_warning = false
msg = '\nPLEASE VERIFY THE CONFIGURATION:'
if (get_option('prefix') == '/usr')
msg += '\nInstallation prefix: @0@ ✅'.format (get_option('prefix'))
else
msg += '\nInstallation prefix: @0@ ⛔'.format (get_option('prefix'))
msg_warning = true
endif
if (msg_warning)
warning(msg + '\n')
else
message(msg + '\n')
endif
if get_option('cursors')
subdir('Hydrogen')
endif
# Let's install
install_subdir(
icon_folder,
install_dir : icon_sys_dir
)
install_data(
join_paths(meson.source_root(), 'logo.png'),
install_dir: join_paths(icon_dir)
)
install_data(
'palette/Helium.gpl',
install_dir: join_paths (get_option('datadir'), 'gimp', '2.0', 'palettes')
)
install_data(
'palette/Helium.gpl',
install_dir: join_paths (get_option('datadir'), 'inkscape', 'palettes')
)