Foundry.BuildStage¶
- Subclasses:
Methods¶
- Inherited:
Foundry.Contextual (4), GObject.Object (37), Json.Serializable (8)
- Structs:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Virtual Methods¶
- Inherited:
|
|
|
|
|
|
|
|
|
|
|
Properties¶
- Inherited:
Name |
Type |
Flags |
Short Description |
|---|---|---|---|
r/w/en |
|||
r/w/en |
|||
r |
|||
r |
|||
r |
|||
r/w/en |
Signals¶
- Inherited:
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
|---|---|---|---|
parent_instance |
r |
Class Details¶
- class Foundry.BuildStage(**kwargs)¶
- Bases:
- Abstract:
Yes
- Structure:
A single state in a build pipeline.
Abstrct base class for implementing custom stages in the build pipeline.
- build(progress)¶
- Parameters:
progress (
Foundry.BuildProgress) –- Returns:
a [class`Dex`.Future] that resolves to any value or rejects with an error.
- Return type:
Run the build for the stage.
- clean(progress)¶
- Parameters:
progress (
Foundry.BuildProgress) –- Returns:
a [class`Dex`.Future] that resolves to any value or rejects with an error.
- Return type:
Clean operation for the stage.
This is used to perform an equivalent of a
make cleanorninja cleanfor the build. It is not necessary on all stages but any stage may implement it.
- find_build_flags(file)¶
- Parameters:
file (
Gio.File) –- Returns:
a [class`Dex`.Future] that resolves to a [class`Foundry`.BuildFlags].
- Return type:
Locates the compiler flags used to when compiling file.
Most build stages will not know about any build flags and therefore do not need to implement this function.
- get_phase()¶
- Return type:
- invalidate()¶
- list_build_targets()¶
- Returns:
a [class`Dex`.Future] that resolves to a [iface`Gio`.ListModel] of [class`Foundry`.BuildTarget] or rejects with error.
- Return type:
Lists the available [class`Foundry`.BuildTarget] known to the stage.
Most build stages will not know about any build targets and therefore do not need to implement this function.
- purge(progress)¶
- Parameters:
progress (
Foundry.BuildProgress) –- Returns:
a [class`Dex`.Future] that resolves to any value or rejects with an error.
- Return type:
Purge operation for the stage.
This is used to perform a purge of an existing pipeline.
The purge command is run when doing a rebuild.
- query()¶
- Returns:
a [class`Dex`.Future] that resolves to any value or rejects with an error.
- Return type:
Query information about the state of the stage and update as necessary.
Some implementations may choose to look at the state of contents on disk and mark the stage as completed without running. Alternatively, they may use it to mark a stage as needing to be run.
- do_build(progress) virtual¶
- Parameters:
progress (
Foundry.BuildProgress) –- Returns:
a [class`Dex`.Future] that resolves to any value or rejects with an error.
- Return type:
Run the build for the stage.
- do_clean(progress) virtual¶
- Parameters:
progress (
Foundry.BuildProgress) –- Returns:
a [class`Dex`.Future] that resolves to any value or rejects with an error.
- Return type:
Clean operation for the stage.
This is used to perform an equivalent of a
make cleanorninja cleanfor the build. It is not necessary on all stages but any stage may implement it.
- do_find_build_flags(file) virtual¶
- Parameters:
file (
Gio.File) –- Returns:
a [class`Dex`.Future] that resolves to a [class`Foundry`.BuildFlags].
- Return type:
Locates the compiler flags used to when compiling file.
Most build stages will not know about any build flags and therefore do not need to implement this function.
- do_get_phase() virtual¶
- Return type:
- do_list_build_targets() virtual¶
- Returns:
a [class`Dex`.Future] that resolves to a [iface`Gio`.ListModel] of [class`Foundry`.BuildTarget] or rejects with error.
- Return type:
Lists the available [class`Foundry`.BuildTarget] known to the stage.
Most build stages will not know about any build targets and therefore do not need to implement this function.
- do_purge(progress) virtual¶
- Parameters:
progress (
Foundry.BuildProgress) –- Returns:
a [class`Dex`.Future] that resolves to any value or rejects with an error.
- Return type:
Purge operation for the stage.
This is used to perform a purge of an existing pipeline.
The purge command is run when doing a rebuild.
- do_query() virtual¶
- Returns:
a [class`Dex`.Future] that resolves to any value or rejects with an error.
- Return type:
Query information about the state of the stage and update as necessary.
Some implementations may choose to look at the state of contents on disk and mark the stage as completed without running. Alternatively, they may use it to mark a stage as needing to be run.
Property Details¶
- Foundry.BuildStage.props.completed¶
- Name:
completed- Type:
- Default Value:
- Flags:
- Foundry.BuildStage.props.kind¶
- Name:
kind- Type:
- Default Value:
- Flags:
- Foundry.BuildStage.props.phase¶
- Name:
phase- Type:
- Default Value:
- Flags:
- Foundry.BuildStage.props.pipeline¶
- Name:
pipeline- Type:
- Default Value:
- Flags: