"Fossies" - the Fresh Open Source Software Archive

Member "firefox-69.0.1/build/docs/mozconfigs.rst" (17 Sep 2019, 1491 Bytes) of package /linux/www/firefox-69.0.1.source.tar.xz:

As a special service "Fossies" has tried to format the requested source page into HTML format (assuming markdown format). Alternatively you can here view or download the uninterpreted source code file. A member file download can also be achieved by clicking within a package contents listing on the according byte size field.

mozconfig Files

mozconfig files are used to configure how a build works.

mozconfig files are actually shell scripts. They are executed in a special context with specific variables and functions exposed to them.



The following special functions are available to a mozconfig script.


This function is used to declare extra options/arguments to pass into configure.


ac_add_options --disable-tests
ac_add_options --enable-optimize


This function is used to inject statements into client.mk for execution. It is typically used to define variables, notably the object directory.


mk_add_options AUTOCLOBBER=1

Special mk_add_options Variables

For historical reasons, the method for communicating certain well-defined variables is via mk_add_options(). In this section, we document what those special variables are.


This variable is used to define the object directory for the current build.

Finding the active mozconfig

Multiple mozconfig files can exist to provide different configuration options for different tasks. The rules for finding the active mozconfig are defined in the :pymozbuild.mozconfig.MozconfigLoader.find_mozconfig method: