forked from jnsh/arc-theme
-
Notifications
You must be signed in to change notification settings - Fork 0
/
meson.build
60 lines (50 loc) · 1.31 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
project(
'arc-theme',
version : '20221218',
meson_version: '>= 0.53.0',
license : 'GPL3',
default_options : [
'debug=false'
]
)
fs = import('fs')
variant_name = {
'normal' : (get_option('transparency') ? 'Gruvbox' : 'Gruvbox-solid'),
}
prefix = get_option('prefix')
datadir = get_option('datadir')
install_dir = {
'normal' : datadir / 'themes' / variant_name.get('normal'),
}
# sassc dependency
foreach theme : ['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 : ['gtk3', 'gtk4']
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 : ['gtk3', 'gtk4']
if theme in get_option('themes')
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')