A fork of the Materia GTK theme.

By using this site, you agree to have cookies stored on your device, strictly for functional purposes, such as storing your session and preferences.

Dismiss

 meson.build

View raw Download
text/plain • 1.59 kiB
ASCII text
        
            
1
cinnamon_scss_depend_files = files([
2
'../_color-palette.scss',
3
'../_colors.scss',
4
'../_variables.scss',
5
'../gnome-shell/sass/_drawing.scss',
6
'../gnome-shell/sass/_variables.scss',
7
'sass/_common.scss',
8
'sass/_extends.scss',
9
'sass/_over-rides.scss',
10
])
11
12
foreach theme: themes
13
cinnamon_dir = join_paths(theme['dir'], 'cinnamon')
14
15
install_subdir(
16
'assets',
17
install_dir: cinnamon_dir,
18
)
19
20
install_data(
21
'thumbnail.png',
22
install_dir: cinnamon_dir,
23
)
24
25
#
26
# SCSS
27
#
28
29
cinnamon_scss_conf = configuration_data()
30
cinnamon_scss_conf.set('variant', theme['scss_variant'])
31
cinnamon_scss_conf.set('topbar', theme['scss_topbar'])
32
cinnamon_scss_conf.set('compact', theme['scss_compact'])
33
34
# Configure SCSS file
35
cinnamon_scss = configure_file(
36
input: 'cinnamon.scss.in',
37
output: 'cinnamon.@0@.scss'.format(theme['name']),
38
configuration: cinnamon_scss_conf,
39
)
40
41
# Copy it from build dir to source dir
42
run_command(
43
'cp',
44
cinnamon_scss,
45
meson.current_source_dir(),
46
)
47
48
# Generate CSS file
49
cinnamon_css = custom_target(
50
'cinnamon.@0@.css'.format(theme['name']),
51
input: 'cinnamon.@0@.scss'.format(theme['name']),
52
output: 'cinnamon.@0@.css'.format(theme['name']),
53
command: [sassc, sassc_opts, '@INPUT@', '@OUTPUT@'],
54
depend_files: cinnamon_scss_depend_files,
55
build_by_default: true,
56
)
57
58
# Install it while renaming to a valid name
59
meson.add_install_script(
60
'sh', '-c', 'cp "@0@" "@1@"'.format(
61
cinnamon_css.full_path(),
62
join_paths('$MESON_INSTALL_DESTDIR_PREFIX', cinnamon_dir, 'cinnamon.css'),
63
),
64
)
65
endforeach
66