diff options
author | Elliott Sales de Andrade <quantum.analyst@gmail.com> | 2017-05-17 05:25:50 -0400 |
---|---|---|
committer | Elliott Sales de Andrade <quantum.analyst@gmail.com> | 2017-05-17 19:43:23 -0400 |
commit | 07bad04a8687e3e0586b0e3172ea4ea19e81365e (patch) | |
tree | 92cffa0e96180f6f53897ff5e2147aa68da282b8 | |
parent | 00f89b0f6ec3cd73bd9859b815548f2267a4fcdc (diff) | |
download | meson-07bad04a8687e3e0586b0e3172ea4ea19e81365e.zip meson-07bad04a8687e3e0586b0e3172ea4ea19e81365e.tar.gz meson-07bad04a8687e3e0586b0e3172ea4ea19e81365e.tar.bz2 |
Handle required `ExtraFrameworkDependency`s.
-rw-r--r-- | mesonbuild/dependencies/base.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/mesonbuild/dependencies/base.py b/mesonbuild/dependencies/base.py index f4ecd57..139ff39 100644 --- a/mesonbuild/dependencies/base.py +++ b/mesonbuild/dependencies/base.py @@ -547,6 +547,7 @@ class ExtraFrameworkDependency(Dependency): def __init__(self, name, required, path, kwargs): Dependency.__init__(self, 'extraframeworks', kwargs) self.name = None + self.required = required self.detect(name, path) if self.found(): mlog.log('Dependency', mlog.bold(name), 'found:', mlog.green('YES'), @@ -570,6 +571,8 @@ class ExtraFrameworkDependency(Dependency): self.path = p self.name = d return + if not self.found() and self.required: + raise DependencyException('Framework dependency %s not found.' % (name, )) def get_compile_args(self): if self.found(): |