Open main menu

CDOT Wiki β

Changes

Real World Mozilla First XPCOM Component

120 bytes added, 19:49, 27 February 2007
Build system changes
The first step in making the build system aware of our component is to generate an input file for autoconf to use during the configure step, which will build the necessary Makefile automatically.
$ cd === mozilla/extensions/firstxpcom $ touch /Makefile.in==
The Makefile.in should contain the following (NOTE: you can read more about what these files actually mean [http://developer.mozilla.org/en/docs/How_Mozilla%27s_build_system_works here]):
Note the '''DIRS''' variable. It says that the two directories, public and src, will be entered during the build. That means we also need Makefile.in files in each of these.
=== mozilla/extensions/firstxpcom/public/Makefile.in == Next we need a Makefile.in the '''public ''' directory
DEPTH = ../../..
Here we tell the build system about our component's name and where it's XPIDL file can be found.
=== mozilla/extensions/firstxpcom/src/Makefile.in == Now a Makefile.in in the '''src ''' directory:
DEPTH = ../../..
The last build-related file we need to write is a file telling Firefox how to install our extension--'''install.rdf''' (see http://developer.mozilla.org/en/docs/Install_Manifests for details).
 
<pre>
<?xml version="1.0" encoding="UTF-8"?>