NotFoundDependency: Implement partial_dependency()

In recent change, dependency('foo') does not return a not-found
PkgConfigDependency any more, but a NotFoundDependency object. This
creates a regression in gst-build that does
dependency('foo').get_partial_dependency() causing Meson to raise an
exception.
pull/4848/head
Xavier Claessens 6 years ago committed by Jussi Pakkanen
parent d02ec7111e
commit b45c367d92
  1. 4
      mesonbuild/dependencies/base.py

@ -328,6 +328,10 @@ class NotFoundDependency(Dependency):
self.name = 'not-found'
self.is_found = False
def get_partial_dependency(self, *, compile_args=False, link_args=False,
links=False, includes=False, sources=False):
return copy.copy(self)
class ConfigToolDependency(ExternalDependency):

Loading…
Cancel
Save