transition
Experimental. This type is experimental and subject to change at any time. Do not depend on it. Represents a configuration transition across a dependency edge. For example, if //package:foo
depends on //package:bar
with a configuration transition, then the configuration of these two targets will differ: //package:bar
's transition will be determined by that of //package:foo
, as subject to the function defined by a transition object.
Methods
transition
transition transition(implementation, inputs, outputs)Experimental. This type is experimental and subject to change at any time. Do not depend on it.
Creates a configuration transition to be applied across a dependency edge.
Parameters
Parameter | Description |
---|---|
implementation
|
The function implementing this transition. This function always has the parameter This function also optionally takes a parameter This function must return a |
inputs
|
List of build settings that can be read by this transition. This becomes the key set of the settings parameter of the implementation function parameter. |
outputs
|
List of build settings that can be written by this transition. This must be a superset of the key set of the dictionary returned by this transition. |