2012-08-03 18:44:16 +00:00
|
|
|
========
|
|
|
|
mozbuild
|
|
|
|
========
|
|
|
|
|
|
|
|
mozbuild is a Python package providing functionality used by Mozilla's
|
|
|
|
build system.
|
|
|
|
|
|
|
|
Modules Overview
|
|
|
|
================
|
|
|
|
|
2013-01-29 14:24:24 +00:00
|
|
|
* mozbuild.backend -- Functionality for producing and interacting with build
|
|
|
|
backends. A build backend is an entity that consumes build system metadata
|
|
|
|
(from mozbuild.frontend) and does something useful with it (typically writing
|
|
|
|
out files that can be used by a build tool to build the tree).
|
2012-08-03 18:45:43 +00:00
|
|
|
* mozbuild.compilation -- Functionality related to compiling. This
|
|
|
|
includes managing compiler warnings.
|
2013-01-16 06:21:21 +00:00
|
|
|
* mozbuild.frontend -- Functionality for reading build frontend files
|
|
|
|
(what defines the build system) and converting them to data structures
|
|
|
|
which are fed into build backends to produce backend configurations.
|
2013-01-23 10:23:14 +00:00
|
|
|
* mozpack -- Functionality related to packaging builds.
|
2013-01-16 06:21:21 +00:00
|
|
|
|
|
|
|
Overview
|
|
|
|
========
|
|
|
|
|
|
|
|
The build system consists of frontend files that define what to do. They
|
|
|
|
say things like "compile X" "copy Y."
|
|
|
|
|
|
|
|
The mozbuild.frontend package contains code for reading these frontend
|
|
|
|
files and converting them to static data structures. The set of produced
|
|
|
|
static data structures for the tree constitute the current build
|
|
|
|
configuration.
|
|
|
|
|
|
|
|
There exist entities called build backends. From a high level, build
|
|
|
|
backends consume the build configuration and do something with it. They
|
|
|
|
typically produce tool-specific files such as make files which can be used
|
|
|
|
to build the tree.
|
|
|
|
|
|
|
|
Piecing it all together, we have frontend files that are parsed into data
|
|
|
|
structures. These data structures are fed into a build backend. The output
|
|
|
|
from build backends is used by builders to build the tree.
|
2012-08-03 18:44:16 +00:00
|
|
|
|