Platform/Channel-specific build defines: Difference between revisions

From MozillaWiki
Jump to navigation Jump to search
(Add a see-also link to platform-specific build defines page)
(RELEASE_BUILD was renamed RELEASE_OR_BETA in bug 1304829 (Firefox 52))
Line 6: Line 6:
This define was added in the Firefox 23 cycle.
This define was added in the Firefox 23 cycle.


==RELEASE_BUILD==
==RELEASE_OR_BETA==
This is defined when [http://mxr.mozilla.org/mozilla-central/source/config/milestone.txt milestone.txt] does not contain "a", i.e. for Beta and Release builds (and ''not'' Nightly or Aurora/DevEdition).
This is defined when [http://mxr.mozilla.org/mozilla-central/source/config/milestone.txt milestone.txt] does not contain "a", i.e. for Beta and Release builds (and ''not'' Nightly or Aurora/DevEdition).



Revision as of 07:16, 9 October 2016

The Mozilla build system defines the following variables (both as AC_DEFINE, for the C++/XUL preprocessors, and AC_SUBST for autoconf/Makefiles) that can be used to control when during the release cycle a feature/code is enabled.

NIGHTLY_BUILD

This is defined when milestone.txt contains "a1", i.e. for Nightly builds only.

This define was added in the Firefox 23 cycle.

RELEASE_OR_BETA

This is defined when milestone.txt does not contain "a", i.e. for Beta and Release builds (and not Nightly or Aurora/DevEdition).

This define was originally added in the Firefox 19 cycle, but was initially only defined in preference files. As of Firefox 23 it is defined globally.

EARLY_BETA_OR_EARLIER

This is defined depending on the corresponding value in build/defines.sh. This file is managed manually by the release management team, with the variable being cleared once we're past the "early beta" point in the release cycle. It is usually done after beta 4, i.e. shipping in Beta 5.

This define was added in the Firefox 23 cycle.

  • Note: use of this flag requires explicit approval from Release Management.
  • Note: this flag is currently not defined for the JS build (bug 879836)

You may also be interested in Platform/Platform-specific_build_defines