Skip to content
API referenceDevelopmentEngine APIEngine ccf7d03f
Synced
  • Configures and builds an explicit component target without detecting the current platform.

API: engine
Project: Inno.Build.Toolchains

public static System.Threading.Tasks.Task<string> Inno.Build.Toolchains.NativeCMakeExecutor.BuildAsync(Inno.Build.Toolchains.NativeBuildContext context, Inno.Build.Toolchains.NativeComponentDescriptor component, string sourceDirectory, string? target, System.Collections.Generic.IReadOnlyList<string> componentArguments, System.Threading.CancellationToken cancellationToken)

Parameter context: The recipe-owned producer scope supplied by NativeArtifactPublisher, with frozen tools and inputs.

Parameter component: The unique component owner of target-scoped intermediate output.

Parameter sourceDirectory: The declared component-owned source directory, resolved to the operation’s independent copy.

Parameter target: The declared CMake build target, or null for the complete selected project.

Parameter componentArguments: Semantic component options; SDK and generator arguments come from the selection.

Parameter cancellationToken: Cancels and drains the complete tool process tree.

The owned CMake build directory after successful compilation.

Exception T:System.InvalidOperationException: Tools are unassigned or configuration or compilation fails.

Exception T:System.OperationCanceledException: The operation was canceled.

Exception T:System.ArgumentException: Product definitions conflict with a semantic definition owned by the component recipe.