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 buildd and should call ide_pipeline_build_finish() to get the status of the operation.

Available since:3.32

Parameters

phase IdePipelinePhase
 

The requested build phase.

targets An array of None
 

An optional array of IdeBuildTarget for the pipeline to build.

 The argument can be NULL.
 The data is owned by the caller of the function.
cancellable GCancellable
 

A GCancellable or NULL.

 The argument can be NULL.
 The data is owned by the caller of the function.
callback GAsyncReadyCallback
 

A callback to build upon completion.

user_data gpointer
 

Data for callback.