blob: 8853c4106e53e3af651ff3e25012ba0eca10c5ea [file] [edit]
---
title: 'subrule_ctx'
---
A context object passed to the implementation function of a subrule.
## Members
* [actions](#actions)
* [fragments](#fragments)
* [label](#label)
* [toolchains](#toolchains)
## actions {#actions}
```
actions subrule_ctx.actions
```
Contains methods for declaring output files and the actions that produce them
## fragments {#fragments}
```
fragments subrule_ctx.fragments
```
Allows access to configuration fragments in target configuration.
## label {#label}
```
Label subrule_ctx.label
```
The label of the target currently being analyzed
## toolchains {#toolchains}
```
ToolchainContext subrule_ctx.toolchains
```
Contains methods for declaring output files and the actions that produce them