Once you have a clone of mozilla-unified, you can set up your development environment by running this command and following the on-screen instructions:
When you’re getting asked to choose the version of Firefox you want to build, you may want to consider choosing “Firefox for Desktop Artifact Mode”. This significantly reduces the time it takes to build Firefox on your machine (from 30+ minutes to just 1-2 minutes) if you have a fast internet connection.
To perform a regular build, simply do:
You can clean out the objdir using this command:
Occasionally a clean build will be required after you fetch the latest changes from mozilla-central. You will find that the the build will error when this is the case. To automatically do clean builds when this happens you may optionally add this line to the mozconfig file in your top source directory:
mk_add_options ‘export RUSTC_WRAPPER=sccache’ mk_add_options ‘export CCACHE_CPP2=yes’ ac_add_options –with-ccache
You may also opt out of building all the WebDriver specific components (Marionette, and the Remote Agent) by setting the following flag: