Skip to content

//mojo:resolve_rule_inputs.bzl

Resolve the inputs to mojo_library and mojo_binary rules.

expand_includes

expand_includes(ctx, include_string)

Prefix include_string with the path to the workspace root.

If include_string starts with $(GENERATED), prefixes with theGENDIR path as well.

Args:

NameDescription
ctx
include_string

resolve_rule_inputs

resolve_rule_inputs(ctx)

Gather the inputs for downstream actions.

Args:

NameDescription
ctxThe rule context.

Returns:

A tuple (defines, includes). See //mojo:actions .bzl for usage.