forked from nana-4/materia-theme
-
Notifications
You must be signed in to change notification settings - Fork 9
/
meson.build
63 lines (56 loc) · 1.4 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
54
55
56
57
58
59
60
61
62
63
project(
'materia-theme',
version: '20200916',
license: 'GPLv2+',
meson_version: '>= 0.47.0',
default_options: ['prefix=/usr'],
)
theme_base_name = get_option('theme_name')
theme_base_dir = join_paths(get_option('datadir'), 'themes', theme_base_name)
sassc = find_program('sassc')
sassc_opts = ['-M', '-t', 'expanded']
themes = []
foreach color: get_option('colors')
foreach size: get_option('sizes')
if color == 'default'
color_suffix = ''
scss_variant = 'light'
scss_topbar = 'dark'
elif color == 'light'
color_suffix = '-light'
scss_variant = 'light'
scss_topbar = 'light'
elif color == 'dark'
color_suffix = '-dark'
scss_variant = 'dark'
scss_topbar = 'dark'
endif
if size == 'default'
size_suffix = ''
scss_compact = 'false'
elif size == 'compact'
size_suffix = '-compact'
scss_compact = 'true'
endif
themes += {
'name': theme_base_name + color_suffix + size_suffix,
'dir': theme_base_dir + color_suffix + size_suffix,
'color': color_suffix,
'size': size_suffix,
'scss_variant': scss_variant,
'scss_topbar': scss_topbar,
'scss_compact': scss_compact,
}
endforeach
endforeach
foreach theme: themes
install_data(
'COPYING',
install_dir: theme['dir'],
)
endforeach
if not get_option('flatpak')
subdir('src')
else
subdir('src/gtk')
endif