Skip to content

//mojo:args.bzl

Arguments for actions.

mojo_action_args

mojo_action_args(ctx, command, input, out_file, includes, defines)

Construct compile commands for a mojo invocation.

Args:

NameDescription
ctxThe rule context.
commandThe command to pass to mojo. Either "build" or "package".
inputThe input to the command. A file for command = "build" and a directory for command = "package".
out_fileThe output file.
includesExtra include directory paths.
definesExtra defines in the form of a=b.

Returns:

A list [args] containing a single ctx.actions.args() argument.