Confirmed users
89
edits
(Replaced content with "=Contributing to Mozilla Firefox= ==Step 0: Download and install the prerequisites== https://developer.mozilla.org/en-US/docs/Simple_Firefox_build") |
No edit summary |
||
Line 4: | Line 4: | ||
https://developer.mozilla.org/en-US/docs/Simple_Firefox_build | https://developer.mozilla.org/en-US/docs/Simple_Firefox_build | ||
sudo apt-get install mercurial <br/> | |||
hg clone https://hg.mozilla.org/mozilla-central <br/> | |||
cd mozilla-central <br/> | |||
./mach bootstrap <br/> | |||
create mozconfig | |||
<pre><nowiki> | |||
# Import the stock config for building the browser (Firefox) | |||
. $topsrcdir/browser/config/mozconfig | |||
# Define where build files should go. This places them in the directory | |||
# "obj-ff-dbg" under the current source directory | |||
mk_add_options MOZ_OBJDIR=@TOPSRCDIR@/obj-ff-dbg | |||
# -s makes builds quieter by default | |||
# -j4 allows 4 tasks to run in parallel. Set the number to be the amount of | |||
# cores in your machine. 4 is a good number. | |||
mk_add_options MOZ_MAKE_FLAGS="-j4" | |||
mk_add_options AUTOCONF=autoconf2.13 | |||
#mk_add_options AUTOCLOBBER=1 | |||
# Enable debug builds | |||
ac_add_options --enable-debug | |||
# Turn off compiler optimization. This will make applications run slower, | |||
# will allow you to debug the applications under a debugger, like GDB. | |||
ac_add_options --disable-optimize | |||
# Only enable this if you have binutils-gold installed | |||
# ac_add_options --enable-gold | |||
ac_add_options --enable-warnings-as-errors | |||
ac_add_options --enable-visual-event-tracer | |||
#ac_add_options --enable-crash-on-assert | |||
</nowiki></pre> | |||
<br/> | |||
./mach build <br/> | |||
./mach run <br/> |