//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:
Name | Description |
---|---|
ctx | |
include_string |
resolve_rule_inputs
resolve_rule_inputs(ctx)
Gather the inputs for downstream actions.
Args:
Name | Description |
---|---|
ctx | The rule context. |
Returns:
A tuple (defines, includes)
. See
//mojo:actions
.bzl for usage.