Difference between revisions of "Distcc mozilla tutorial"

From CDOT Wiki
Jump to: navigation, search
(Requirements)
(MOZCONFIG)
Line 9: Line 9:
  
 
=MOZCONFIG=
 
=MOZCONFIG=
 +
Currently, distcc does not transmit debug .pdb files. So you cannot currently do a debug build. Here is a sample MOZCONFIG file. All you need to do is modify the object directory (MOZ_OBJDIR).
 +
 +
'''Note the last line''', which is required for any MOZCONFIG file that wants to build using distcc.
 +
<pre>
 +
mk_add_options MOZ_OBJDIR=/cygdrive/c/home/cesar/mozobj
 +
ac_add_options --enable-application=browser
 +
ac_add_options --enable-optimize
 +
ac_add_options --disable-debug
 +
ac_add_options --enable-debugger-info-modules=no
 +
mk_add_options MOZ_CO_PROJECT=browser
 +
mk_add_options MOZ_MAKE_FLAGS="CC='distcc cl' CXX='distcc cl' -j4"
 +
</pre>
 +
 
=Environment=
 
=Environment=
 
=Check out=
 
=Check out=
 
=Build=
 
=Build=

Revision as of 14:27, 20 March 2007

What is this?

This is a tutorial to get distcc to compile Mozilla Firefox on cygwin.

Requirements

  1. Window machines. For distcc to be of any use, there should be at least 2 machines
  2. Cygwin. You will need gcc to build distcc. We built using gcc-3.4.4
  3. Mozilla requirements
  4. Patience

MOZCONFIG

Currently, distcc does not transmit debug .pdb files. So you cannot currently do a debug build. Here is a sample MOZCONFIG file. All you need to do is modify the object directory (MOZ_OBJDIR).

Note the last line, which is required for any MOZCONFIG file that wants to build using distcc.

	mk_add_options MOZ_OBJDIR=/cygdrive/c/home/cesar/mozobj
	ac_add_options --enable-application=browser
	ac_add_options --enable-optimize
	ac_add_options --disable-debug
	ac_add_options --enable-debugger-info-modules=no
	mk_add_options MOZ_CO_PROJECT=browser
	mk_add_options MOZ_MAKE_FLAGS="CC='distcc cl' CXX='distcc cl' -j4"

Environment

Check out

Build