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:
Matthieu Gautier
2018-05-28 11:44:54 +02:00
parent 7e0b403ccc
commit 115fbfa147
14 changed files with 72 additions and 63 deletions

View File

@ -20,7 +20,6 @@ class _MetaDependency(type):
class Dependency(metaclass=_MetaDependency):
all_deps = {}
dependencies = []
force_native_build = False
def __init__(self, buildEnv):
@ -205,11 +204,16 @@ class SvnClone(Source):
class Builder:
subsource_dir = None
dependencies = []
def __init__(self, target):
self.target = target
self.buildEnv = target.buildEnv
@classmethod
def get_dependencies(cls, platformInfo):
return cls.dependencies
@property
def name(self):
return self.target.name