CmakeBuildStep class final

CMake build step for native libraries.

Executes the actual build process using CMake.

Implemented types

Constructors

CmakeBuildStep({String id = 'cmake_build', String execution = 'target', required String buildDirectory, List<String> targets = const [], bool parallel = true, Map<String, String>? environment, ProcessRunnerInterface? runner})
const
CmakeBuildStep.fromMap(Map<String, dynamic> map)
Creates a CmakeBuildStep from a YAML-derived map.
factory

Properties

buildDirectory → String
Path to the build directory (where CMakeCache.txt is).
final
environment → Map<String, String>?
Environment variables for the build process.
final
execution → String
Execution context: host or target.
final
hashCode → int
The hash code for this object.
no setterinherited
id → String
Step identifier.
final
parallel → bool
Whether to build in parallel.
final
runner → ProcessRunnerInterface?
Optional process runner.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
targets → List<String>
Specific targets to build. Empty means build all.
final

Methods

execute(NativeBuildContext context, ResolvedSource source) → Future<NativeStepResult>
Execute this build step.
override
fingerprint(NativeStepContext context) → Future<NativeStepFingerprint>
Compute a fingerprint for this step based on its inputs.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → Map<String, dynamic>
Serialize this step to JSON.
override
toMap() → Map<String, dynamic>
Serializes this step to a map suitable for YAML output.
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited