aedi: add descriptions to target class methods

This commit is contained in:
alexey.lysiuk 2022-08-18 10:30:39 +03:00
parent 24a2c520bd
commit 7fc549f24d

View file

@ -46,21 +46,30 @@ class Target:
self.unsupported_architectures = () self.unsupported_architectures = ()
def prepare_source(self, state: BuildState): def prepare_source(self, state: BuildState):
""" Called when target is selected by name """
pass pass
def initialize(self, state: BuildState): def initialize(self, state: BuildState):
""" Called on all targets except the selected one before prefix directory creation """
pass pass
def detect(self, state: BuildState) -> bool: def detect(self, state: BuildState) -> bool:
"""
Called when target is selected by source code directory
Called on all targets until match is found
"""
return False return False
def configure(self, state: BuildState): def configure(self, state: BuildState):
""" Called before selected target is about to build """
pass pass
def build(self, state: BuildState): def build(self, state: BuildState):
""" Does actual build """
pass pass
def post_build(self, state: BuildState): def post_build(self, state: BuildState):
""" Called after selected target is built """
pass pass