Bazel BUILD Files
Jump to navigation
Jump to search
External
Internal
Overview
A BUILD
is a short program, an interpretable list of Starlark statements. It can be named BUILD
or BUILD.bazel
and where both exist, BUILD.bazel
takes precedence.
General Syntax
Variables must be defined before they are used.
The relative order in which build rules are declared is unimportant.
Build Rules
When a build rule function is executed, it creates a new target in the graph, which can later referred using a label.