diff options
author | Nirbheek Chauhan <nirbheek@centricular.com> | 2018-04-12 02:41:33 +0530 |
---|---|---|
committer | Jussi Pakkanen <jpakkane@gmail.com> | 2018-04-21 16:10:03 +0300 |
commit | fc5e8dfcdae11d23469fd01d878c7c9c30d67d30 (patch) | |
tree | ee863f6d18e0d95fa08d042647613a2ff9842fc2 /mesonbuild/dependencies/base.py | |
parent | 2993eaf8844cfc04800ac22ab4012c8ee6f87b0e (diff) | |
download | meson-fc5e8dfcdae11d23469fd01d878c7c9c30d67d30.zip meson-fc5e8dfcdae11d23469fd01d878c7c9c30d67d30.tar.gz meson-fc5e8dfcdae11d23469fd01d878c7c9c30d67d30.tar.bz2 |
Don't fail on not-required not-found deps in forcefallback mode
This involves the creation of a new dummy NotFoundDependency.
Diffstat (limited to 'mesonbuild/dependencies/base.py')
-rw-r--r-- | mesonbuild/dependencies/base.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/mesonbuild/dependencies/base.py b/mesonbuild/dependencies/base.py index 27a5fcb..0114a14 100644 --- a/mesonbuild/dependencies/base.py +++ b/mesonbuild/dependencies/base.py @@ -257,6 +257,14 @@ class ExternalDependency(Dependency): return new +class NotFoundDependency(Dependency): + def __init__(self, environment): + super().__init__('not-found', {}) + self.env = environment + self.name = 'not-found' + self.is_found = False + + class ConfigToolDependency(ExternalDependency): """Class representing dependencies found using a config tool.""" |