Difference between revisions of "Make FUEL work with Firefox 2"
Samer.ziadeh (talk | contribs) |
Samer.ziadeh (talk | contribs) (→fuelApplication.js) |
||
Line 66: | Line 66: | ||
== fuelApplication.js == | == fuelApplication.js == | ||
'''fuelApplication.js''' is located in '''mozilla/browser/fuel/src''' and will be the main file that will undergo the changes. | '''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] | + | You can get the latest update of it [http://www.samerziadeh.com/mozilla/fuelApplication.js here]. It's just a plain text file, it doesn't have the fancy change revision. |
== Links == | == Links == |
Revision as of 19:54, 22 March 2008
Contents
Introduction
FUEL (Firefox User Extension Library) is a JavaScript Library designed to help developers build extensions using terminology and interfaces that are familiar to them. It will be usable in Firefox 1.5-3.0. FUEL is about making it easier for extension developers to be productive, by minimizing some of the XPCOM formality and adding some "modern" JavaScript ideas. We want to start with areas that will provide the most benefit. source
The People
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:
mkdir mozilla-1.8-branch cd mozilla-1.8-branch
Checkout out the 1.8 branch:
cvs -d :pserver:anonymous@cvs-mirror.mozilla.org:/cvsroot co -r MOZILLA_1_8_BRANCH mozilla/client.mk
Create the .mozconfig file
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
Checkout the source (this process takes about 15 minutes):
make -f client.mk checkout
Build ff (this could take anywhere between 30 and 90 minutes):
make -f client.mk build
Get FUEL:
cd .. cvs -d :pserver:anonymous@cvs-mirror.mozilla.org:/cvsroot co mozilla/browser/fuel
Modify browser/Makefile.in
cd mozilla/browser vi Makefile.in
- Go to the line starting with DIRS
- Append fuel to the end of it
DIRS = base components locales extensions themes app fuel
Generate the makefiles manually:
cd ../objdir ../build/autoconf/make-makefiles browser/fuel make -C browser/fuel
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 here. It's just a plain text file, it doesn't have the fancy change revision.