Please note, this is a STATIC archive of website developer.mozilla.org from 03 Nov 2016, cach3.com does not collect or store any user information, there is no "phishing" involved.

All platforms are using the same set of makefiles for the build so all you have to do is edit Makefile.in files (and possibly toolkit/toolkit-tiers.mk if you add new makefiles).

Note: Don't forget to check TreeHerder after you check in!

Adding files to the build

  • Edit Makefile.in files to add new source files, and export header files.
  • Dependencies are specified in Makefile.in too
  • If you add a new directory to the build, you have to add the directory to the list of subdirectories in ../Makefile.in.
  • Some directories are special, and you need to list new directories in toolkit/toolkit-tiers.mk. The files listed here are not specific to the toolkit/ directory, so if your makefile is not yet being processed correctly, try to add it here.
  • On platforms that build with gcc, because of the symbol visibility, you might have to check System Headers to make sure they are properly wrapped.

Checking in

Adding new files to the build can cause breakage on tinderbox and to other developers if things aren't checked in the correct order.

  1. Check in only the new files.
  2. Check in the patches to existing files that make your new files get used.

Exporting files

Exporting a file makes it get copied to mozilla/dist. C and C++ header files are exported by including them the EXPORTS list in Makefile.in, and IDL files are exported by including them in the XPIDLSRCS list.

Original Document Information

  • Author(s): Akkana Peck
  • Last Updated Date: May 28, 2007
  • Copyright Information: Portions of this content are © 1998–2007 by individual mozilla.org contributors; content available under a Creative Commons license | Details.

Document Tags and Contributors

 Last updated by: selenamarie,