Menu

Building Enigmail

Patrick Brunschwig Nicolai Josuttis

Building Enigmail

Prerequisites

In order to build Enigmail, you need the following tools:

  • perl v5.8 or newer
  • python v2.7.1 or newer
  • make
  • a Unix shell interpreter (E.g. sh, ksh, bash)
  • zip

If you are building on Windows, we recommend a cygwin environment.

Obtaining the Enigmail Source Code

The source code is either avilable as tar file for releases from https://enigmail.net/index.php/en/download/source-code or you can clone the source code from out git repository.

Compiling Enigmail

Enigmail is compiled and packaged by executing these steps from the top level source code directory:

./configure
make

The resulting XPI file will reside in the build/ subdirectory.
Supported Make-Targets

The top-level Makefile supports the following targets:

  • all - build all of Enigmail including the XPI release package (the default)
  • dirs - build all of Enigmail, but do not create the XPI package
  • xpi - create the XPI package which can be installed in the application
  • clean - delete all generated files
  • distclean - delete all generated files including the results of "configure".

If you are developing Enigmail, you can use the following targets:

  • test - run all unit tests
  • eslint - run static code analysis (syntax checking, part of "test")

In a development environment 'all' automatically includes theses tasks.

Cross-Compiling

Cross-compiling is supported for Enigmail v1.7 and v1.8. As of v1.9 cross-compiling is not required anymore, as there are no binary components anymore. Use the "--host" parameter of configure for this purpose. E.g.:

./configure --host=x86_64-winnt
make

You should then obtain an XPI file for your target platform in the build/ directory.


Related

Developer Wiki: Development Environment
Developer Wiki: Home

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.