Changes

Jump to: navigation, search

User:DavidBertenshaw/Assignment 01: Build the Fox

2,371 bytes added, 15:18, 19 September 2006
Process
1) Firstly I created a directory called Proj under the c:\ drive. (I am going to outline the small steps as they were the ones that tripped me up the first time).
2) Next download the [http://ftp.mozilla.org/pub/mozilla.org/mozilla/libraries/win32/moztools-static.zip| MozTools] , extracted them, and placed the directory in c:\proj\moztools\. I also added this to my path, not sure if that's required though.
3)Once those tasks were done I installed cygwin and configured it as per the Cygwin {http://developer.mozilla.org/en/docs/Windows_Build_Prerequisites#GNU_Tools_for_Microsoft_Windows_.28Cygwin.29|Configuration]. 4)A batch script is needed to configure the system so that the right variables are in the path and such. I created a batch script called SetupFireFox.bat with the following code inside.  @echo off rem --- CVS SetupSET CVSROOT=:pserver:anonymous@cvs-mirror.mozilla.org:/cvsrootSET CVS_RSH=ssh rem --- Setup the paths to the moztools build librariesset MOZ_TOOLS=C:\proj\moztoolsset GLIB_PREFIX=%MOZ_TOOLS%set LIBIDL_PREFIX=%MOZ_TOOLS% rem --- Scrub these variables firstSET INCLUDE=SET LIB=SET PATH=C:\;C:\windows\system32;C:\windows\system32\wbem rem --- Prepend cygwinSET PATH=C:\cygwin\bin;%PATH% rem --- Setup VC8 compiler environment varsCALL "C:\Program Files\Microsoft Visual Studio 8\VC\vcvarsall.bat" x86 rem --- Add glib/libidl to build environmentSET PATH=%PATH%;%GLIB_PREFIX%;%GLIB_PREFIX%\binSET INCLUDE=%GLIB_PREFIX%\include;%INCLUDE%SET LIB=%GLIB_PREFIX%\lib;%LIB% rem --- moztools comes last after glib/libIDLSET PATH=%PATH%;%MOZ_TOOLS%\bin 5) Check out the build via cvs by typing 'cvs login' from c:\proj. Then type: cvs co mozilla/browser/config mozilla/client.mk This will create the mozilla directory. 6) I then proceeded to move into the mozilla directory and create a file called mozconfig. I added the following code to mozconfig: # Building Firefox Trunk with Debugging. $topsrcdir/browser/config/mozconfig # Put all obj files in one place, not in src treemk_add_options MOZ_OBJDIR=@TOPSRCDIR@/firefox-objdirac_add_options --disable-staticac_add_options --enable-shared # Debug Build Setup Optionsac_add_options --disable-optimizeac_add_options --enable-debug # I'm using Canvas for my workac_add_options --enable-canvas 7)While in the same directory I typed: make -f client.mk checkout Which will check out the client.  8) Before building I had to ensure that I had all of the tools installed. I installed Visual Studio 2005 and then NSIS. After I added NSIS to the path. This step also ment downloading make 3.80 and adding it to the path. 9) While in c:\proj I ran my batch script. Once the environment was setup I typed 'make -f client.mk build' to build the software.
== Conflicts ==
1
edit

Navigation menu