gtk2/gtk/theme/Adwaita/meson.build
Emmanuele Bassi 2ab9be54fb Rename the SCSS files for our themes
It seems that Meson's gnome.compile_resources() cannot deal with two
files with the same name under different directories, which breaks the
build parallelism because the GResource file ends up not depending on
either the Adwaita or the HighContrast gtk-contained.css file.

This commit only changes the on-disk names of the Adwaita and
HighContrast SCSS files, and the corresponding generated CSS files; the
files in the GResource are going to be aliased to the old file names, to
minimise the breakage. We might want to change the theme entry points at
some later date, if we decide to commit to this naming scheme.

Fixes: #2423

See Meson bug: https://github.com/mesonbuild/meson/issues/6615
2020-02-12 20:22:43 +00:00

33 lines
711 B
Meson

adwaita_scss_files = files([
'_colors-public.scss',
'_colors.scss',
'_common.scss',
'_drawing.scss',
])
adwaita_theme_variants = [
'dark',
]
adwaita_theme_deps = [
custom_target('Adwaita theme',
input: 'Adwaita.scss',
output: 'Adwaita.css',
command: [
sassc, sassc_opts, '@INPUT@', '@OUTPUT@',
],
depend_files: adwaita_scss_files,
),
]
foreach variant: adwaita_theme_variants
adwaita_theme_deps += custom_target('Adwaita theme variant: ' + variant,
input: 'Adwaita-@0@.scss'.format(variant),
output: 'Adwaita-@0@.css'.format(variant),
command: [
sassc, sassc_opts, '@INPUT@', '@OUTPUT@',
],
depend_files: adwaita_scss_files,
)
endforeach