aedi: add initialize method to target class

it's called on all targets except selected one before prefix directory creation
This commit is contained in:
alexey.lysiuk 2022-08-18 10:28:49 +03:00
parent 9a909691aa
commit 24a2c520bd
2 changed files with 7 additions and 0 deletions

View file

@ -72,6 +72,10 @@ class Builder(object):
state.external_source = True
self._detect_target()
for target in self._targets.values():
if target != self._target:
target.initialize(state)
del self._targets
if arguments.build_path:

View file

@ -48,6 +48,9 @@ class Target:
def prepare_source(self, state: BuildState):
pass
def initialize(self, state: BuildState):
pass
def detect(self, state: BuildState) -> bool:
return False