Setting Up an MSVC Toolkit Firefox/Thunderbird Build Environment

Written by Jeff Walden

Introduction

Microsoft recently released a free version of the Visual Studio C++ compiler. This free version is (interestingly enough) fully functional. Compiled code created with it is binary-compatible with code used in downloadable plug-ins like Java, Flash, Shockwave, and others (something which can't be said for builds created using MinGW and gcc on Windows). The free compiler can also be used to build Mozilla applications. This document describes how a complete, optimized build environment can be created from nothing but a Windows command line.

This probably works for other Mozilla-based applications, like Sunbird, the Mozilla Suite, and others. However, I've only tested Firefox and Thunderbird so far. Also, note that your mozconfig file will need to be at least somewhat different if you intend to build an application other than Firefox. Hopefully I'll have time to make the directions more generic, but I don't know when that'll be.

Pros and Cons

Requirements

Getting Environment-Specific Tools

Download and install the following Windows build environment software. For simplicity, choose the default installation locations for everything. At some point in the future I may edit these instructions to work with non-default install locations, but for now you'll have to use the defaults.

Getting General Windows Build Environment Tools