Changes

Jump to: navigation, search

Assignment 1: Building the Fox

2,184 bytes added, 20:02, 19 September 2006
Initial Setup
== Initial Setup ==
For the preparation for the build, I first read the [http://developer.mozilla.org/en/docs/Build_Documentation Mozilla Development Center Build Documentation], but quickly ran out of patience. Then I found another [http://pryan.org/firefox/TierMann/page/building/index.html website] that offers a more compressed set of instructions.
*First, I downloaded and installed [http://sources.redhat.com/cygwin/setup.exe Cygwin], following the instruction [http://pryan.org/firefox/TierMann/page/building/packages.html here].
*I already have Visual Studio .NET 2003 installed, so I didn't install any SDK suggested by the site.
*I downloaded [http://ftp.mozilla.org/pub/mozilla.org/mozilla/source/wintools.zip Moztools], and unpacked it as instructed.
*I created a batch file following this [http://pryan.org/firefox/TierMann/page/building/environment.html template] and name it '''mozset.bat'''. I later edited the batch file, reducing it to this:
<pre>
set HOME=C:\home
 
set VCVARS=C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\bin\vcvars32.bat
 
set MOZ_TOOLS=C:\moztools
set CVSROOT=:pserver:anonymous:anonymous@cvs-mirror.mozilla.org:/cvsroot
 
set CYGWINBASE=C:\cygwin
set CYGWIN=nodosfilewarning
 
set PATH=%CYGWINBASE%\bin;%PATH%
 
call "%VCVARS%"
set PATH=%PATH%;%MOZ_TOOLS%\bin
 
bash --login -i
</pre>
 
*Lastly, I retrieved Mozilla source using cvs as instructed [http://pryan.org/firefox/TierMann/page/building/source.html here].
<pre>
mozset
cvs login
cvs co mozilla/client.mk
</pre>
 
*Prior to the build, I created .mozconfig file and place it on the mozilla directory at c:/home. I used the template from the source site at first, but then modified it using Elizabeth Chak's version [http://cs1.senecac.on.ca/wiki/index.php/Liz_Chak_Assignment_1 here]. This is the resulting file:
 
<pre>
. $topsrcdir/browser/config/mozconfig
# Put all obj files in one place, not in src tree
mk_add_options MOZ_OBJDIR=@TOPSRCDIR@/firefox-objdir
ac_add_options --disable-shared
ac_add_options --disable-static
ac_add_options --enable-debug
ac_add_options --disable-activex
ac_add_options --disable-activex-scripting
ac_add_options --enable-canvas
ac_add_options --disable-installer
</pre>
== Build Process ==
1
edit

Navigation menu