mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-08 09:40:10 +00:00
dist: Add a dist script to generate css
When I added the sassc option, I failed to ensure that the theme css is included in the tarballs. This is required to make tarball builds with -Dsassc=disabled work.
This commit is contained in:
parent
b33ca43e14
commit
13ef82fc4d
19
build-aux/meson/dist-theme.py
Normal file
19
build-aux/meson/dist-theme.py
Normal file
@ -0,0 +1,19 @@
|
||||
#!/usr/bin/env python3
|
||||
|
||||
import os
|
||||
from pathlib import PurePath
|
||||
import subprocess
|
||||
|
||||
stylesheets = [ 'gtk/theme/Adwaita/Adwaita.css',
|
||||
'gtk/theme/Adwaita/Adwaita-dark.css',
|
||||
'gtk/theme/HighContrast/HighContrast.css',
|
||||
'gtk/theme/HighContrast/HighContrast-inverse.css' ]
|
||||
|
||||
sourceroot = os.environ.get('MESON_SOURCE_ROOT')
|
||||
distroot = os.environ.get('MESON_DIST_ROOT')
|
||||
|
||||
for stylesheet in stylesheets:
|
||||
stylesheet_path = PurePath(stylesheet)
|
||||
src = PurePath(sourceroot, stylesheet_path.with_suffix('.scss'))
|
||||
dst = PurePath(distroot, stylesheet_path)
|
||||
subprocess.call(['sassc', '-a', '-M', '-t', 'compact', src, dst])
|
@ -803,6 +803,8 @@ else
|
||||
message('Not executing post-install steps automatically when cross compiling')
|
||||
endif
|
||||
|
||||
meson.add_dist_script('build-aux/meson/dist-theme.py')
|
||||
|
||||
if host_machine.system() != 'windows'
|
||||
# Install Valgrind suppression files (except on Windows,
|
||||
# as Valgrind is currently not supported on Windows)
|
||||
|
Loading…
Reference in New Issue
Block a user