- Setup mercurial:
[ui]
editor = notepad
username = something@somewhere.com
merge = p4merge
- Check out the source code:
hg clone http://hg.mozilla.org/mozilla-central/ src
- Set the topsrcdir for builds by editting
C:\mozilla-build\start-msvc9.bat
And inserting something like this into it:
rem YOURNAME vvvvv
set topsrcdir=/d/work/firefox/src
rem YOURNAME ^^^^^
- Start shell with the build environment:
C:\mozilla-build\start-msvc9.bat
- Use the shell you just started for the following commands
- Set up the filefox build options by editing .mozconfig with vi.
Place the following into it:
# my mozilla config
mk_add_options MOZ_OBJDIR=@TOPSRCDIR@/obj-@CONFIG_GUESS@
ac_add_options --enable-application=browser
mk_add_options MOZ_CO_PROJECT=browser
ac_add_options --enable-debug
ac_add_options --disable-accessibility
- Start the build like this:
make -f {????}
- Wait a very long time
- Run the Firefox you built:
obj-i686-pc-mingw32/dist/bin/firefox.exe