mirror of
https://github.com/boostorg/build.git
synced 2026-02-15 13:02:11 +00:00
43 lines
900 B
Plaintext
43 lines
900 B
Plaintext
|
|
--------------------------------
|
|
Boost.Build developer guidelines
|
|
--------------------------------
|
|
|
|
CODING CONVENTIONS.
|
|
|
|
1. All names of rules and variables are lowercase with "-" to separate
|
|
words.
|
|
|
|
rule call-me-ishmael ( ) ...
|
|
|
|
2. Names with dots in them are "intended globals". Ordinary globals use
|
|
a dot prefix:
|
|
|
|
.foobar
|
|
$(.foobar)
|
|
|
|
3. Pseudofunctions or associations are <parameter>.<property>:
|
|
|
|
$(argument).name = hello ;
|
|
$($(argument).name)
|
|
|
|
4. Class attribute names are prefixed with "self.":
|
|
|
|
self.x
|
|
$(self.x)
|
|
|
|
5. Builtin rules are called via their ALL_UPPERCASE_NAMES:
|
|
|
|
DEPENDS $(target) : $(sources) ;
|
|
|
|
6. Opening and closing braces go on separate lines:
|
|
|
|
if $(a)
|
|
{
|
|
#
|
|
}
|
|
else
|
|
{
|
|
#
|
|
}
|