Thunderbird:Build: Difference between revisions

From MozillaWiki
Jump to navigation Jump to search
No edit summary
No edit summary
 
(13 intermediate revisions by 5 users not shown)
Line 1: Line 1:
<small>[[Thunderbird:Home|<< Back to Thunderbird Home Page]]</small>
<small>[[Thunderbird:Home|<< Back to Thunderbird Home Page]]</small>


= Build =
Please see https://developer.mozilla.org/en-US/docs/Introduction
 
Mozilla Developer Center has the [http://developer.mozilla.org/en/docs/Build_Documentation documentation] required to build Thunderbird.
 
To build on Mac OS X 10.5 Leopard,
 
1. Get your build environment [http://developer.mozilla.org/en/docs/Mac_OS_X_Build_Prerequisites up and running].
 
2. Check out your code on [http://developer.mozilla.org/en/docs/Mozilla_Source_Code_(CVS) CVS]. A sample .mozconfig for a dual-core MacBook Pro is here:
 
# Sample .mozconfig
mk_add_options MOZ_MAKE_FLAGS="-j3"
mk_add_options MOZ_OBJDIR=@TOPSRCDIR@/../objdir-@CONFIG_GUESS@
mk_add_options MOZ_BUILD_PROJECTS="browser mail calendar"
mk_add_options MOZ_CO_PROJECT="browser mail calendar"
# For debugging, enable if necessary
#mk_add_options MOZ_CO_MODULE="mozilla/tools/trace-malloc"
#ac_add_options --enable-trace-malloc
# To enable multi-app compilation from one .mozconfig
ac_add_app_options browser --enable-application=browser
ac_add_app_options mail --enable-application=mail
ac_add_app_options calendar --enable-application=calendar
# Compilation options
ac_add_options --disable-optimize
ac_add_options --enable-debug
ac_add_options --disable-static
ac_add_options --enable-shared
ac_add_options --with-macos-sdk=/Developer/SDKs/MacOSX10.4u.sdk
# Build Thunderbird with preinstalled Lightning if needed.
ac_add_options --enable-extensions=default,lightning
 
3. To run the builds in Terminal in the following recommended way, go through the following commands:
 
* Set up for leak detection.
export XPCOM_MEM_LEAK_LOG=2
 
* mail-dumped.txt will show the objects dumped when shut down.
export XPC_SHUTDOWN_HEAP_DUMP=mail-dumped.txt
 
* Change into your directory.
cd $$$YOURDIRECTORY$$$/objdir-i386-apple-darwin9.2.0/mail/dist/ThunderbirdDebug.app/Contents/MacOS/
 
* Create your profile here.
./thunderbird-bin -Profilemanager --no-remote
 
* Run Thunderbird within gdb to get stack traces when the application crashes.
gdb ./thunderbird-bin
 
* Within gdb, type this command:
handle SIG33 noprint nostop
 
* Run the debug Thunderbird build with your just-created profile.
run -P "$$$YOURPROFILE$$$" -no-remote
 
= Build Machines =
 
TBD
 
= Helping With Build =
 
TBD
 
[[category:Thunderbird|*]]

Latest revision as of 15:36, 22 October 2012