Bazel BUILD Files: Difference between revisions
Jump to navigation
Jump to search
Line 5: | Line 5: | ||
=Overview= | =Overview= | ||
A <code>BUILD</code> is a short program, an interpretable list of [[Starlark|Starlark]] statements. It can be named <code>BUILD</code> or <code>BUILD.bazel</code> and where both exist, <code>BUILD.bazel</code> takes precedence. | A <code>BUILD</code> is a short program, an interpretable list of [[Starlark|Starlark]] statements. It can be named <code>BUILD</code> or <code>BUILD.bazel</code> and where both exist, <code>BUILD.bazel</code> takes precedence. | ||
=General Syntax= | |||
Variables must be defined before they are used. | |||
The relative order in which [[#Build_Rule|build rules]] are declared is unimportant. | |||
=<span id='Build_Rule'></span>Build Rules= |
Revision as of 21:06, 16 July 2024
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.