Debian Codegraph @

meson.build

raw
1 project(
2 'arc-theme',
3 version : '20221218',
4 meson_version: '>= 0.53.0',
5 license : 'GPL3',
6 default_options : [
7 'debug=false'
8 ]
9 )
10
11 fs = import('fs')
12
13 variant_name = {
14 'light' : (get_option('transparency') ? 'Arc' : 'Arc-solid'),
15 'darker' : (get_option('transparency') ? 'Arc-Darker' : 'Arc-Darker-solid'),
16 'dark' : (get_option('transparency') ? 'Arc-Dark' : 'Arc-Dark-solid'),
17 'lighter' : (get_option('transparency') ? 'Arc-Lighter' : 'Arc-Lighter-solid'),
18 }
19
20 prefix = get_option('prefix')
21 datadir = get_option('datadir')
22
23 install_dir = {
24 'light' : datadir / 'themes' / variant_name.get('light'),
25 'darker' : datadir / 'themes' / variant_name.get('darker'),
26 'dark' : datadir / 'themes' / variant_name.get('dark'),
27 'lighter' : datadir / 'themes' / variant_name.get('lighter'),
28 }
29
30 # sassc dependency
31 foreach theme : ['cinnamon', 'gnome-shell', 'gtk3', 'gtk4']
32 if theme in get_option('themes')
33 sassc = find_program('sassc')
34 if get_option('debug')
35 sassc_options = ['--line-numbers', '--style', 'nested']
36 else
37 sassc_options = ['--style', 'compact']
38 endif
39 break
40 endif
41 endforeach
42
43 # inkscape dependency
44 foreach theme : ['gtk2', 'gtk3', 'gtk4', 'xfwm']
45 if theme in get_option('themes')
46 inkscape = find_program('inkscape', required : false)
47 if inkscape.found()
48 inkscape_ver = run_command(inkscape, '--version', check : true).stdout().split()[1]
49 endif
50 break
51 endif
52 endforeach
53
54 # glib-compile-resources dependency
55 foreach theme : ['gnome-shell', 'gtk3', 'gtk4']
56 if theme in get_option('themes')
57 if theme == 'gnome-shell' and not get_option('gnome_shell_gresource')
58 continue
59 endif
60 glib_compile_resources = find_program('glib-compile-resources')
61 break
62 endif
63 endforeach
64
65 install_file = meson.source_root() / 'meson/install-file.py'
66
67 meson.add_dist_script('meson/render-assets.py')
68
69 subdir('common')