mirror of
https://github.com/edu4rdshl/gnome-shell.git
synced 2026-07-18 07:34:54 +00:00
theme: Pre-generate stylesheets as well
Since commit 9ef9a5ff8a, man pages are generated at dist time to reduce
build dependencies when building from a released tarball.
Do the same for the stylesheets to also remove the sassc dependency.
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1555>
This commit is contained in:
parent
9ef9a5ff8a
commit
eafbfdfa07
4 changed files with 35 additions and 14 deletions
|
|
@ -42,20 +42,21 @@ theme_sources = files([
|
|||
'gnome-shell-sass/widgets/_workspace-thumbnails.scss'
|
||||
])
|
||||
|
||||
styles = [
|
||||
'gnome-shell-high-contrast',
|
||||
'gnome-shell'
|
||||
stylesheets = [
|
||||
'gnome-shell-high-contrast.css',
|
||||
'gnome-shell.css'
|
||||
]
|
||||
|
||||
theme_deps = []
|
||||
|
||||
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)
|
||||
foreach stylesheet: stylesheets
|
||||
if not fs.exists(stylesheet)
|
||||
sassc = find_program('sassc')
|
||||
theme_deps += custom_target(stylesheet,
|
||||
input: fs.replace_suffix(stylesheet, '.scss'),
|
||||
output: stylesheet,
|
||||
command: [
|
||||
sassc, '-a', '@INPUT@', '@OUTPUT@'
|
||||
],
|
||||
depend_files: theme_sources)
|
||||
endif
|
||||
endforeach
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue