Method
IdePipelinebuild_targets_async
Declaration
void
ide_pipeline_build_targets_async (
IdePipeline* self,
IdePipelinePhase phase,
GPtrArray* targets,
GCancellable* cancellable,
GAsyncReadyCallback callback,
gpointer user_data
)
Description
Asynchronously starts the build pipeline.
The phase parameter should contain the IdePipelinePhase that is
necessary to complete. If you simply want to trigger a generic
build, you probably want IDE_PIPELINE_PHASE_BUILD. If you only
need to configure the project (and necessarily the dependencies
up to that phase) you might want IDE_PIPELINE_PHASE_CONFIGURE.
You may not specify IDE_PIPELINE_PHASE_AFTER or
IDE_PIPELINE_PHASE_BEFORE flags as those must always be processed
with the underlying phase they are attached to.
Upon completion, callback will be build and should call
ide_pipeline_build_finish() to get the status of the operation.
Parameters
phase-
Type:
IdePipelinePhaseThe requested build phase.
targets-
Type: An array of
NoneAn optional array of
IdeBuildTargetfor the pipeline to build.The argument can be NULL.The data is owned by the caller of the method. cancellable-
Type:
GCancellableA
GCancellableorNULL.The argument can be NULL.The data is owned by the caller of the method. callback-
Type:
GAsyncReadyCallbackA callback to build upon completion.
The argument can be NULL. user_data-
Type:
gpointerData for
callback.The argument can be NULL.The data is owned by the caller of the method.