mirror of
https://github.com/kiwix/kiwix-build.git
synced 2025-06-28 05:49:33 +00:00
Move dependencies declaration of a target into the builder.
This is the builder that depends on other target, not the target itself.
This commit is contained in:
@ -32,12 +32,12 @@ class Builder:
|
||||
targetClass = Dependency.all_deps[targetName]
|
||||
target = targetClass(self.buildEnv)
|
||||
targets[targetName] = target
|
||||
for dep in target.dependencies:
|
||||
for dep in target.builder.get_dependencies(self.platform):
|
||||
self.add_targets(dep, targets)
|
||||
|
||||
def order_dependencies(self, _targets, targetName):
|
||||
target = _targets[targetName]
|
||||
for depName in target.dependencies:
|
||||
for depName in target.builder.dependencies(self.platform):
|
||||
yield from self.order_dependencies(_targets, depName)
|
||||
yield targetName
|
||||
|
||||
|
Reference in New Issue
Block a user