APIReference.md

December 19, 2019 ยท View on GitHub

brotli_compressed_files

brotli_compressed_files(name, brotli, compression_level, srcs)

Compress a set of files with Brotli

ATTRIBUTES

NameDescriptionTypeMandatoryDefault
nameA unique name for this target.Namerequired
brotliThe Brotli executableLabeloptional@brotli//:brotli
compression_levelA number between 0 and 11 indicating how much effort to put into compressingIntegeroptional11
srcsFiles to compressList of labelsoptional[]

brotli_compress_file

brotli_compress_file(actions, executable, input, output_name, compression_level)

Emits an Action that compresses a single file with Brotli

This function invokes ctx.actions.run with Brotli on a single file. It is intended to be used inside the implementation of rules.

PARAMETERS

NameDescriptionDefault Value
actionsthe actions module, usually via ctx.actions inside a rule impl.none
executablethe brotli exe.none
input

-

none
output_namethe filename for the output.

If not set, defaults to the input filename with a ".br" extension suffix.
None
compression_levela number between 0 and 11 indicating how hard to try.

If not set, the brotli exe will choose a default (typically 11).
None

brotli_repositories

brotli_repositories()

Download and build the Brotli executable.

PARAMETERS