Skip to content

Latest commit

 

History

History
executable file
·
33 lines (20 loc) · 1.27 KB

installer_rule.md

File metadata and controls

executable file
·
33 lines (20 loc) · 1.27 KB

Installer Rules

Skylark rules for installing files using Bazel.

installer

installer(name, data, compilation_mode, executable, target_subdir)

Creates an installer

This rule creates an installer for targets in data. Running the installer copies built targets to a given prefix. The prefix has to be passed as an argument to the installer.

PARAMETERS

Name Description Default Value
name A unique name of this rule. none
data Targets to be installed. File names will not be changed. none
compilation_mode If not empty, sets compilation_mode of targets in data. "opt"
executable If True, the copied files will be set as executable. True
target_subdir Optional subdir under the prefix where the files will be placed. ""