[gtk/wip/otte/css: 12/16] build: Make sassc mandatory



commit 49f0b0c96d6a0db190e35173e57ca3c2d9ef8123
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]