Open main menu

CDOT Wiki β

Changes

Make FUEL work with Firefox 2

1,886 bytes added, 20:53, 22 March 2008
no edit summary
* [[User:Samer.Ziadeh|Samer Ziadeh]]
 
== TODO ==
* Current FUEL is manually added to the build (see below). It will be much easier if the build script did it for us :)
== Project Details ==
At the moment FUEL only works on Firefox3. This project is dedicated in back porting FUEL to make it work with Firefox2
 
== Build Instructions ==
Here are the steps to build FUEL into ff2 (from scratch) '''[I built on Mac]'''
 
First create a directory to checkout in:
<pre>mkdir mozilla-1.8-branch
cd mozilla-1.8-branch</pre>
 
Checkout out 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 the .mozconfig file
<pre>cd mozilla
cat > .mozconfig << MOZCONFIG
# Options for client.mk.
mk_add_options MOZ_CO_PROJECT=browser
mk_add_options MOZ_OBJDIR=@TOPSRCDIR@/objdir
mk_add_options MOZ_MAKE_FLAGS="-s -j4"
 
# Options for 'configure' (same as command-line options).
ac_add_options --enable-application=browser
ac_add_options --enable-debug
ac_add_options --enable-tests
ac_add_options --with-macos-sdk=/Developer/SDKs/MacOSX10.4u.sdk
MOZCONFIG</pre>
 
Checkout the source (this process takes about 15 minutes):
<pre>make -f client.mk checkout</pre>
 
Build ff (this could take anywhere between 30 and 90 minutes):
<pre>make -f client.mk build</pre>
 
Get FUEL:
<pre>cd ..
cvs -d :pserver:anonymous@cvs-mirror.mozilla.org:/cvsroot co mozilla/browser/fuel</pre>
 
Modify browser/Makefile.in
<pre>cd mozilla/browser
vi Makefile.in</pre>
* Go to the line starting with DIRS
* Append fuel to the end of it
<pre>DIRS = base components locales extensions themes app fuel</pre>
 
Generate the makefiles manually:
<pre>cd ../objdir
../build/autoconf/make-makefiles browser/fuel
make -C browser/fuel</pre>
 
and there you have it, FUEL is now built into ff2
 
== fuelApplication.js ==
'''fuelApplication.js''' is located in '''mozilla/browser/fuel/src''' and will be the main file that will undergo the changes.
You can get the latest update of it [http://www.samerziadeh.com/mozilla/fuelApplication.js here]
== Links ==