c62e7a6a82
The previous implementation of the CSS generation logic considered sassc an optional dependency and made sure for that reason that the result CSS files ended up in the source directory, so that they could be checked in and kept in sync with the source sass files. As we are making sassc a required dependency, we can now stop doing that extra work and simply rely on the CSS files being automatically generated each time the sass sources change. By doing this, we can now effectively get rid of the CSS files checked in the repo as well as of the parse_sass.sh script, since the CSS files will now live on the build directory only. https://bugzilla.gnome.org/show_bug.cgi?id=792822
28 lines
766 B
Meson
28 lines
766 B
Meson
theme_sources = files([
|
|
'gnome-shell-high-contrast.scss',
|
|
'gnome-shell.scss',
|
|
'gnome-shell-sass/_colors.scss',
|
|
'gnome-shell-sass/_common.scss',
|
|
'gnome-shell-sass/_drawing.scss',
|
|
'gnome-shell-sass/_high-contrast-colors.scss'
|
|
])
|
|
|
|
styles = [
|
|
'gnome-shell-high-contrast',
|
|
'gnome-shell'
|
|
]
|
|
|
|
theme_deps = []
|
|
|
|
if sassc.found()
|
|
foreach style: styles
|
|
theme_deps += custom_target('style-' + style,
|
|
input: '@0@.scss'.format(style),
|
|
output: '@0@.css'.format(style),
|
|
command: [
|
|
sassc, '-a', '@INPUT@', '@OUTPUT@'
|
|
],
|
|
depend_files: theme_sources)
|
|
endforeach
|
|
endif
|