[gnome-shell] build: Minor cleanups
- From: Florian Müllner <fmuellner src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell] build: Minor cleanups
- Date: Tue, 20 Feb 2018 10:10:23 +0000 (UTC)
commit a347ed99121ae397a96d6a754de0b6fa970c2b8f
Author: Florian Müllner <fmuellner gnome org>
Date: Tue Feb 20 10:24:24 2018 +0100
build: Minor cleanups
find_program() defaults to require the program in question, and as
failing to locate it is now fatal, there's no longer a need for
checking whether it was found later.
Spotted by Michael Catanzaro.
data/theme/meson.build | 20 +++++++++-----------
meson.build | 2 +-
2 files changed, 10 insertions(+), 12 deletions(-)
---
diff --git a/data/theme/meson.build b/data/theme/meson.build
index cf941ef27..22bae3dd2 100644
--- a/data/theme/meson.build
+++ b/data/theme/meson.build
@@ -14,14 +14,12 @@ styles = [
theme_deps = []
-if sassc.found()
- foreach style: styles
- theme_deps += custom_target('style-' + style,
- input: '@0@.scss'.format(style),
- output: '@0@.css'.format(style),
- command: [
- sassc, '-a', '@INPUT@', '@OUTPUT@'
- ],
- depend_files: theme_sources)
- endforeach
-endif
+foreach style: styles
+ theme_deps += custom_target('style-' + style,
+ input: '@0@.scss'.format(style),
+ output: '@0@.css'.format(style),
+ command: [
+ sassc, '-a', '@INPUT@', '@OUTPUT@'
+ ],
+ depend_files: theme_sources)
+endforeach
diff --git a/meson.build b/meson.build
index 895246e61..f5b08b8f9 100644
--- a/meson.build
+++ b/meson.build
@@ -138,7 +138,7 @@ endif
mutter_typelibdir = mutter_dep.get_pkgconfig_variable('typelibdir')
python = find_program('python3')
-sassc = find_program('sassc', required: true)
+sassc = find_program('sassc')
cc = meson.get_compiler('c')
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]