1.9 KiB
Executable File
1.9 KiB
Executable File
my_rule
my_rule(name, deps, extra_arguments, out, src, tool)
This rule exercises some of the build API.
ATTRIBUTES
Name | Description | Type | Mandatory | Default |
---|---|---|---|---|
name | A unique name for this target. | Name | required | |
deps | A list of dependencies. | List of labels | optional | [] |
extra_arguments | - | List of strings | optional | [] |
out | The output file. | Label | required | |
src | The source file. | Label | optional | None |
tool | The location of the tool to use. | Label | optional | //foo/bar/baz:target |
MyInfo
MyInfo(foo, bar)
FIELDS
Name | Description |
---|---|
foo | Something foo-related. |
bar | Something bar-related. |
exercise_the_api
exercise_the_api()
PARAMETERS
my_rule_impl
my_rule_impl(ctx)
PARAMETERS
Name | Description | Default Value |
---|---|---|
ctx | - |
none |