[gtk/wip/otte/css: 81/85] build: Make sassc mandatory
- From: Benjamin Otte <otte src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/wip/otte/css: 81/85] build: Make sassc mandatory
- Date: Mon, 27 Jan 2020 03:02:08 +0000 (UTC)
commit fc78cdd03a1d6b029ae20bc02327593bc6069f14
Author: Benjamin Otte <otte redhat com>
Date: Sun Jan 26 17:55:42 2020 +0100
build: Make sassc mandatory
Developers consistently forget updating the theme files and then when
I get to debug theme issues I end up looking at an outdated CSS file
that isn't even used in my theme and waste a bunch of time debugging
non-issues.
If anyone wants to make sassc optional again, they should first figure
out a way that ensures this doesn't happen.
gtk/meson.build | 10 +-
gtk/theme/Adwaita/gtk-contained-dark.css | 1966 ---------------------
gtk/theme/Adwaita/gtk-contained.css | 1982 ----------------------
gtk/theme/HighContrast/gtk-contained-inverse.css | 1632 ------------------
gtk/theme/HighContrast/gtk-contained.css | 1638 ------------------
5 files changed, 4 insertions(+), 7224 deletions(-)
---
diff --git a/gtk/meson.build b/gtk/meson.build
index 75d56a4f0a..6710c02253 100644
--- a/gtk/meson.build
+++ b/gtk/meson.build
@@ -770,13 +770,11 @@ gtk_gresources_xml = configure_file(output: 'gtk.gresources.xml',
# Re-build the theme files if sassc is available
theme_deps = []
-sassc = find_program('sassc', required: false)
-if sassc.found()
- sassc_opts = [ '-a', '-M', '-t', 'compact' ]
+sassc = find_program('sassc')
+sassc_opts = [ '-a', '-M', '-t', 'compact' ]
- subdir('theme/Adwaita')
- subdir('theme/HighContrast')
-endif
+subdir('theme/Adwaita')
+subdir('theme/HighContrast')
gtkresources = gnome.compile_resources('gtkresources',
gtk_gresources_xml,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]