[gtk/wip/otte/build: 74/77] build: Remove sassc option
- From: Benjamin Otte <otte src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/wip/otte/build: 74/77] build: Remove sassc option
- Date: Wed, 7 Apr 2021 14:23:20 +0000 (UTC)
commit af1a8602c57064c75d1b6c6d5cdbb36c26d67c08
Author: Benjamin Otte <otte redhat com>
Date: Thu Apr 1 21:29:41 2021 +0200
build: Remove sassc option
Instead, ensure that sassc is made madatory on git builds (because
it is, we don't ship CSS files anymore) and not even looked for in
release builds (because do ship CSS files there).
gtk/meson.build | 30 ++++++++++++++++--------------
meson.build | 1 +
meson_options.txt | 5 -----
3 files changed, 17 insertions(+), 19 deletions(-)
---
diff --git a/gtk/meson.build b/gtk/meson.build
index ed6c97617b..41bf499439 100644
--- a/gtk/meson.build
+++ b/gtk/meson.build
@@ -838,23 +838,25 @@ gtk_gresources_xml = configure_file(output: 'gtk.gresources.xml',
],
)
-# Build the theme files
-sassc = find_program('sassc', required: false)
-if not sassc.found() and not get_option('sassc').disabled()
- subproject('sassc')
- sassc = find_program('sassc', required: get_option('sassc').enabled())
-endif
+theme_deps = []
+# For git checkouts, but not for tarballs...
+if not fs.exists('theme/Adwaita/Adwaita.css')
+ # ... build the theme files
+ sassc = find_program('sassc', required: false)
+ if not sassc.found()
+ subproject('sassc')
+ sassc = find_program('sassc', required: true)
+ endif
-if sassc.found()
- sassc_opts = [ '-a', '-M', '-t', 'compact' ]
+ if sassc.found()
+ sassc_opts = [ '-a', '-M', '-t', 'compact' ]
- subdir('theme/Default')
+ subdir('theme/Default')
- theme_deps = [
- default_theme_deps,
- ]
-else
- theme_deps = []
+ theme_deps += [
+ default_theme_deps,
+ ]
+ endif
endif
gtkresources = gnome.compile_resources('gtkresources',
diff --git a/meson.build b/meson.build
index 38d23ed61c..ef956f94a7 100644
--- a/meson.build
+++ b/meson.build
@@ -24,6 +24,7 @@ cloudproviders_req = '>= 0.3.1'
xkbcommon_req = '>= 0.2.0'
sysprof_req = '>= 3.38.0'
+fs = import('fs')
gnome = import('gnome')
pkg_config = import('pkgconfig')
diff --git a/meson_options.txt b/meson_options.txt
index 744acd33c8..275a912cb8 100644
--- a/meson_options.txt
+++ b/meson_options.txt
@@ -83,11 +83,6 @@ option('colord',
value: 'disabled',
description : 'Build colord support for the CUPS printing backend')
-option('sassc',
- type: 'feature',
- value: 'auto',
- description: 'Rebuild themes using sassc')
-
# Documentation and introspection
option('gtk_doc',
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]