NativeCMakeExecutor.BuildAsync
Section titled “NativeCMakeExecutor.BuildAsync”
- Configures and builds an explicit component target without detecting the current platform.
Required contracts
Section titled “Required contracts”API: engine
Project: Inno.Build.Toolchains
Declaration
Section titled “Declaration”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)Parameters
Section titled “Parameters”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.
Returns
Section titled “Returns”The owned CMake build directory after successful compilation.
Exceptions
Section titled “Exceptions”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.