2
0
mirror of https://gitlab.com/ita1024/waf.git synced 2024-11-22 01:46:15 +01:00

Process dependency Nodes in bld(rule=..., deps=[..])

This commit is contained in:
Thomas Nagy 2021-06-16 22:12:57 +02:00
parent 95c2bc0702
commit 9a60e7ed9e

View File

@ -631,12 +631,8 @@ def process_rule(self):
cls.scan = self.scan
elif has_deps:
def scan(self):
nodes = []
for x in self.generator.to_list(getattr(self.generator, 'deps', None)):
node = self.generator.path.find_resource(x)
if not node:
self.generator.bld.fatal('Could not find %r in %r (was it declared?)' % (x, self.generator))
nodes.append(node)
deps = getattr(self.generator, 'deps', None)
nodes = self.generator.to_nodes(deps)
return [nodes, []]
cls.scan = scan