Building Standalone Composer

## Getting the source and building Standalone Composer

### UNIX, Windows (gmake)

1. Create a .mozconfig file in your home directory, or in the mozilla directory, containing the following:
   `ac_add_options --enable-crypto
   ac_add_options --disable-debug
   ac_add_options --enable-optimize=-O2
   ac_add_options --disable-ldap
   ac_add_options --disable-mailnews
   ac_add_options --disable-mathml
   ac_add_options --disable-installer
   ac_add_options --disable-activex
   ac_add_options --disable-activex-scripting
   ac_add_options --disable-tests
   ac_add_options --disable-oji
   ac_add_options --disable-necko-disk-cache
   ac_add_options --disable-profilesharing
   ac_add_options --enable-extensions=cookie,xml-rpc,xmlextras,pref,universalchardet,webservices
   # Note: Only include icon for mac, windows and os2
   ac_add_options --enable-image-decoders=icon,png,gif,jpeg
   export MOZ_STANDALONE_COMPOSER=1
   mk_add_options MOZ_STANDALONE_COMPOSER=1
   `

   Warning: DO NOT USE `--enable-optimize=-O2` on Windows. There are bugs. Simply use `--enable-optimize`.

2. Pull from CVS and build as described in the Mozilla build instructions.
3. If your build breaks in mozilla/toolkit/components/console, during some JAR packaging, you may be running into Bug #206785 where the xul pre-processor is dying. A temporary work around is listed in the bug, just replace MOZ_THUNDERBIRD by MOZ_STANDALONE_COMPOSER
4. Run the `composer` executable that is left in dist/bin