forked from horst3180/arc-theme
-
Notifications
You must be signed in to change notification settings - Fork 75
/
meson.build
69 lines (59 loc) · 1.86 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
64
65
66
67
68
69
project(
'arc-theme',
version : '20221218',
meson_version: '>= 0.53.0',
license : 'GPL3',
default_options : [
'debug=false'
]
)
fs = import('fs')
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', 'gtk4']
if theme in get_option('themes')
sassc = find_program('sassc')
if get_option('debug')
sassc_options = ['--line-numbers', '--style', 'nested']
else
sassc_options = ['--style', 'compact']
endif
break
endif
endforeach
# inkscape dependency
foreach theme : ['gtk2', 'gtk3', 'gtk4', 'xfwm']
if theme in get_option('themes')
inkscape = find_program('inkscape', required : false)
if inkscape.found()
inkscape_ver = run_command(inkscape, '--version', check : true).stdout().split()[1]
endif
break
endif
endforeach
# glib-compile-resources dependency
foreach theme : ['gnome-shell', 'gtk3', 'gtk4']
if theme in get_option('themes')
if theme == 'gnome-shell' and not get_option('gnome_shell_gresource')
continue
endif
glib_compile_resources = find_program('glib-compile-resources')
break
endif
endforeach
install_file = meson.source_root() / 'meson/install-file.py'
meson.add_dist_script('meson/render-assets.py')
subdir('common')