Confirmed users
400
edits
| Line 38: | Line 38: | ||
=== Preparing a Fennec mozconfig === | === Preparing a Fennec mozconfig === | ||
Next, navigate to your source directory and create a text file called "mozconfig". The mozconfig file is what tells the Mozilla build system what to build and how your build environment is prepared. | Next, navigate to your source directory and create a text file called "mozconfig". The bootstrap script will print out the contents of mozconfig for you when it finishes (and you can run the script again to print this information out). The mozconfig file is what tells the Mozilla build system what to build and how your build environment is prepared. | ||
It should be named <tt>mozconfig</tt> in your source directory, as the build scripts will read from the mozconfig file in your source directory by default, [https://developer.mozilla.org/en-US/docs/Configuring_Build_Options although you can configure this if you need to]. | |||
Here is a minimal mozconfig file (you will need to fill out the paths): | |||
# Build Firefox for Android: | # Build Firefox for Android: | ||
| Line 49: | Line 53: | ||
This assumes you have followed the instructions above and are using Android platform 22 and NDK version r10e. You must use <tt>$HOME</tt> instead of <tt>~</tt> in your mozconfig because <tt>~</tt> does not get expanded. | This assumes you have followed the instructions above and are using Android platform 22 and NDK version r10e. You must use <tt>$HOME</tt> instead of <tt>~</tt> in your mozconfig because <tt>~</tt> does not get expanded. | ||
Mozilla's build system writes all build intermediate files and output artifacts into a separate directory called the ''object directory''. The build system will choose a reasonable default name for the object directory if you don't specify one, but it's common to specify an object directory starting with "obj" and to put it inside your source directory. Add a line like the following to your mozconfig: | Mozilla's build system writes all build intermediate files and output artifacts into a separate directory called the ''object directory''. The build system will choose a reasonable default name for the object directory if you don't specify one, but it's common to specify an object directory starting with "obj" and to put it inside your source directory. Add a line like the following to your mozconfig: | ||