Changes

Jump to: navigation, search

User:Jamesboston

345 bytes added, 19:54, 18 September 2008
Edited to include both cvs and mercurial instructions for windows
= Building Firefox =
 
''These instructions are for Firefox 3.1.* builds that use mercurial for source control. Prior versions of Firefox used cvs for source control.''
== Building on Windows Vista ==
c:\mozilla-build\start-msvc8.bat
If you are attempting to build Firefox 3.1 you can checkout the source using mercurial as described below. When creating a working directory and checking out the source it doesn't really matter where you put it, but avoid paths that contain spaces. If your user name doesn't have space you can checkout the source to your home directory like this:
cd
mkdir mozilla
cd mozilla
hg clone http://hg.mozilla.org/mozilla-central/ src
 
If you are attempting to build Firefox 3.0 you can checkout the source using cvs as described below:
cd
cvs -d :pserver:anonymous@cvs-mirror.mozilla.org:/cvsroot co mozilla/client.mk
cd ~/mozilla
make -f client.mk checkout MOZ_CO_PROJECT=browser
Create and open a hidden file called .mozconfig in your home directory:
ac_add_options --enable-debug
ac_add_options --disable-static --enable-shared
 
If you are using a multi-core computer for building, you can try adding a flag to speed up compile times. Use a value of ''((# of cores)*2)+1'' (ie. five for two cores):
mk_add_options MOZ_MAKE_FLAGS=-j5
Visual Studio 2008 users may also need to add the following to .mozconfig
ac_add_options --disable-accessibility
Start the build (which will take AT LEAST one hour):
cd ~/mozilla
make -f client.mk build
ac_add_options --disable-static --enable-shared
Start the build (which will take AT LEAST one hour):
cd ~/mozilla
make -f client.mk build

Navigation menu