mirror of
https://github.com/ZDoom/zdoom-macos-deps.git
synced 2025-01-31 20:10:32 +00:00
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:
parent
9a909691aa
commit
24a2c520bd
2 changed files with 7 additions and 0 deletions
|
@ -72,6 +72,10 @@ class Builder(object):
|
||||||
state.external_source = True
|
state.external_source = True
|
||||||
self._detect_target()
|
self._detect_target()
|
||||||
|
|
||||||
|
for target in self._targets.values():
|
||||||
|
if target != self._target:
|
||||||
|
target.initialize(state)
|
||||||
|
|
||||||
del self._targets
|
del self._targets
|
||||||
|
|
||||||
if arguments.build_path:
|
if arguments.build_path:
|
||||||
|
|
|
@ -48,6 +48,9 @@ class Target:
|
||||||
def prepare_source(self, state: BuildState):
|
def prepare_source(self, state: BuildState):
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
def initialize(self, state: BuildState):
|
||||||
|
pass
|
||||||
|
|
||||||
def detect(self, state: BuildState) -> bool:
|
def detect(self, state: BuildState) -> bool:
|
||||||
return False
|
return False
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue