rules/imp/native-tool/index.js

Developer reference: this page includes exported implementation details. BUILD authors should prefer the User API reference.

nativeTool()

nativeTool(name)

Declare an executable resolved lazily from the host PATH. The returned value is a graph tool handle. During the incremental ruleset migration, nativeToolSpec() can also resolve the same handle into the descriptor expected by legacy run() consumers.

ParameterTypeDescription
namestringExecutable name to look up on PATH, e.g. "cmake".

Returns: object Serializable native-tool specification.

nativeToolSpec()

nativeToolSpec(spec)

Resolve a nativeTool() specification into a run({ tools }) descriptor.