forked from horst3180/arc-theme
-
Notifications
You must be signed in to change notification settings - Fork 75
/
meson.build
42 lines (36 loc) · 1.15 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
project(
'arc-theme',
version : '20210412',
meson_version: '>= 0.50.0',
license : 'GPL3'
)
variant_name = {
'light' : (get_option('transparency') ? 'Arc' : 'Arc-solid'),
'darker' : (get_option('transparency') ? 'Arc-Darker' : 'Arc-Darker-solid'),
'dark' : (get_option('transparency') ? 'Arc-Dark' : 'Arc-Dark-solid'),
'lighter' : (get_option('transparency') ? 'Arc-Lighter' : 'Arc-Lighter-solid'),
}
prefix = get_option('prefix')
datadir = get_option('datadir')
install_dir = {
'light' : datadir / 'themes' / variant_name.get('light'),
'darker' : datadir / 'themes' / variant_name.get('darker'),
'dark' : datadir / 'themes' / variant_name.get('dark'),
'lighter' : datadir / 'themes' / variant_name.get('lighter'),
}
# sassc dependency
foreach theme : ['cinnamon', 'gnome-shell', 'gtk3']
if theme in get_option('themes')
sassc = find_program('sassc')
break
endif
endforeach
# inkscape dependency
foreach theme : ['gtk2', 'gtk3', 'xfwm']
if theme in get_option('themes')
inkscape = find_program('inkscape')
inkscape_ver = run_command(inkscape, '--version').stdout().split()[1]
break
endif
endforeach
subdir('common')