Open main menu

CDOT Wiki β

Changes

Make FUEL work with Firefox 2

850 bytes added, 00:38, 23 March 2008
Build Instructions
== Build Instructions ==
Here are the steps We need to build FUEL into ff2 (from scratch) '''[I built on Mac]''' First create a directory to checkout throw the mozilla source in:.
<pre>mkdir mozilla-1.8-branch
cd mozilla-1.8-branch</pre>
Checkout out This will fetch the ''client.mk'' file from mozilla.''client.mk'' contains info on how to configure the build tree to configure any productthe ''-r MOZILLA_1_8_BRANCH'' specifies to the server that we want the ''client.mk'' file from the 1.8 branch:
<pre>cvs -d :pserver:anonymous@cvs-mirror.mozilla.org:/cvsroot co -r MOZILLA_1_8_BRANCH mozilla/client.mk</pre>
Create Now we need to create the ''.mozconfig '' file.It contains parameters for ''client.mk'' on how to checkout and build.The last ''ac_add_options'' line is not needed for non Mac machines.
<pre>cd mozilla
cat > .mozconfig << MOZCONFIG
MOZCONFIG</pre>
Checkout After creating the MozConfig file we can begin downloading the source . <small>(this process takes about 15 minutesaround 220mb):</small>
<pre>make -f client.mk checkout</pre>
Build ff (this could take anywhere between 30 and 90 minutes):Now we can start building firefox.
<pre>make -f client.mk build</pre>
When finished the firefox executable is found in the following directories
* xp/*nix: mozilla/dist/bin/firefox
* mac: mozilla/dist/bin/Something.app/Contents/MacOs/firefox
Get To download FUEL:navigate to ''../mozilla''
<pre>cd ..
cvs -d :pserver:anonymous@cvs-mirror.mozilla.org:/cvsroot co mozilla/browser/fuel</pre>
Modify Now that we have acquired the fuel source we need to modify the ''browser/Makefile.in'' to let the build know about the addition
<pre>cd mozilla/browser
vi Makefile.in</pre>
<pre>DIRS = base components locales extensions themes app fuel</pre>
Generate The build script doesn't generate the fuel part automatically, which is why fuel is fetched after the build is done.The following steps will force the generation of the makefiles manually:, and then rebuild fuel and app
<pre>cd ../objdir
../build/autoconf/make-makefiles browser/fuel
make -C browser/fuelmake -C browser/app</pre>
and there you have it, FUEL is now built into ff2
 
== Links ==