Developer:Building Spicebird From Source Code

From Spicebird

Jump to:navigation, search

This page describes the steps required to build Spicebird from Source Code.

Contents

Build Prerequisites

Spicebird has the same prerequisites as Mozilla Firefox and Mozilla Thunderbird described at

http://developer.mozilla.org/en/docs/Build_Documentation#Build_prerequisites.

Get Spicebird and Mozilla Code and Prepare it

  1. Get the Spicebird source code as described in Developer:Get Spicebird Source Code page. You will most likely end up having a folder with Spicebird and corresponding Mozilla source code checked out from the source repository.
  2. Spicebird sometimes needs a few changes (that have not gone upstream, yet) in the base Mozilla code. For this patches are provided along with the collab source code. Apply these patches.
    $ cd /path/to/source
    $ collab/patches/patch.sh
    

    Note: Older version of the Spicebird has patches distributed separately. In this case you need to download the patches tarball, listed in the table on Developer:Get Compatible Mozilla Source Code page and apply them similarly.

Build the Source Code

  1. Create mozconfig
    $ echo ". ${topsrcdir}/collab/config/mozconfig" > $HOME/.mozconfig
    
  2. Start compilation
    $ cd /path/to/mozilla/source 
    $ make -f client.mk build
    

Creating installer

To create an installer, the following line has be to included in mozconfig file, before the compilation is started.

$ echo "ac_add_options --enable-static --disable-shared" >> $HOME/.mozconfig

NOTE: Unless MOZ_OBJDIR is specified, build directory is same as the top-level source directory.

After the compilation is done, change to the build directory and build the installer.

For Windows

$ cd /path/to/build-dir
$ make -C collab/installer installer

For Linux

$ cd /path/to/build-dir
$ make -C collab/installer

On Linux, this will create a bzipped file at /path/to/build-dir/dist and on Windows, this will create a setup file at /path/to/build-dir/dist/install/sea.

Related Links

spicebird
contributing to wiki
Toolbox