forked from AuroraMiddleware/gtk
ee408d5f75
If we have sassc installed then we want to rebuild the themes that use SCSS whenever one of their dependencies change.
30 lines
1.0 KiB
Meson
30 lines
1.0 KiB
Meson
scss_files = files([
|
|
'_colors.scss',
|
|
'_common.scss',
|
|
'_drawing.scss',
|
|
])
|
|
|
|
theme_variants = [
|
|
'inverse',
|
|
]
|
|
|
|
theme_deps += custom_target('HighContrast',
|
|
input: 'gtk-contained.scss',
|
|
output: 'gtk-contained.css',
|
|
command: [
|
|
sassc, sassc_opts, '@INPUT@', '@OUTPUT@',
|
|
],
|
|
depend_files: scss_files,
|
|
build_by_default: true)
|
|
|
|
foreach variant: theme_variants
|
|
theme_deps += custom_target('HighContrast-' + variant,
|
|
input: 'gtk-contained-@0@.scss'.format(variant),
|
|
output: 'gtk-contained-@0@.css'.format(variant),
|
|
command: [
|
|
sassc, sassc_opts, '@INPUT@', '@OUTPUT@',
|
|
],
|
|
depend_files: scss_files,
|
|
build_by_default: true)
|
|
endforeach
|