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.
This commit is contained in:
Florian Müllner 2018-02-20 10:24:24 +01:00
parent 99d32d2add
commit a347ed9912
2 changed files with 10 additions and 12 deletions

View File

@ -14,14 +14,12 @@ styles = [
theme_deps = [] theme_deps = []
if sassc.found() foreach style: styles
foreach style: styles theme_deps += custom_target('style-' + style,
theme_deps += custom_target('style-' + style, input: '@0@.scss'.format(style),
input: '@0@.scss'.format(style), output: '@0@.css'.format(style),
output: '@0@.css'.format(style), command: [
command: [ sassc, '-a', '@INPUT@', '@OUTPUT@'
sassc, '-a', '@INPUT@', '@OUTPUT@' ],
], depend_files: theme_sources)
depend_files: theme_sources) endforeach
endforeach
endif

View File

@ -138,7 +138,7 @@ endif
mutter_typelibdir = mutter_dep.get_pkgconfig_variable('typelibdir') mutter_typelibdir = mutter_dep.get_pkgconfig_variable('typelibdir')
python = find_program('python3') python = find_program('python3')
sassc = find_program('sassc', required: true) sassc = find_program('sassc')
cc = meson.get_compiler('c') cc = meson.get_compiler('c')