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:
@ -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
|
||||
|
Reference in New Issue
Block a user