Skip to main content

Rules

action_listener

View rule sourceopen_in_new
WARNING: Extra actions are deprecated. Use aspects instead. An action_listener rule doesn’t produce any output itself. Instead, it allows tool developers to insert extra_actions into the build system, by providing a mapping from action to extra_action. This rule’s arguments map action mnemonics to extra_action rules. By specifying the option --experimental_action_listener=<label>, the build will use the specified action_listener to insert extra_actions into the build graph.

Example

Arguments

extra_action

View rule sourceopen_in_new
WARNING: Extra actions are deprecated. Use aspects instead. An extra_action rule doesn’t produce any meaningful output when specified as a regular build target. Instead, it allows tool developers to insert additional actions into the build graph that shadow existing actions. See action_listener for details on how to enable extra_actions. The extra_actions run as a command-line. The command-line tool gets access to a file containing a protocol buffer as $(EXTRA_ACTION_FILE) with detailed information on the original action it is shadowing. It also has access to all the input files the original action has access to. See extra_actions_base.proto for details on the data stored inside the protocol buffer. Each proto file contains an ExtraActionInfo message. Just like all other actions, extra actions are sandboxed, and should be designed to handle that.

Arguments