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)

Describe an executable resolved from the host PATH. This is immutable serializable configuration, not a selectable target. Resolving it with nativeToolSpec() creates the memo dependency used by the selected workload that consumes the tool.

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.

TOOL

const TOOL

Undocumented.

toolSpec()

toolSpec(provider)

Resolve either a serializable nativeTool() specification or a legacy target provider implementing the generic TOOL product.