mail/config/mozconfigs/macosx-universal/release
author Philipp Kewisch <mozilla@kewis.ch>
Thu, 15 Nov 2012 10:21:24 +0100
changeset 11515 f9cec7b19696784a459ba98a9af47764d3b8882b
parent 11426 8285f35f9fd542ae16a0a9b482b7a6be7ec13aec
child 11947 9a7f8ded61c8437c88ab6161bba4163cfb30ffb4
permissions -rw-r--r--
Bug 793628 - Produce Lightning Nightly builds during Thunderbird build process - Fix Mac Universal builds. r=Standard8

# Big Hack that unsets CC / CXX so that mozconfig.common doesn't get
# mixed up with host/target CPUs when trying to work out how to do the
# universal build. When we redo the build system (bug 648979) this will
# go away.
if test -e "$topsrcdir/mail/config/version.txt"; then
  unset CC
  unset CXX
fi

. $topsrcdir/build/macosx/universal/mozconfig

# Universal builds override the default of mail (bug 575283 comment 29)
ac_add_options --enable-application=mail
ac_add_options --enable-update-channel=${MOZ_UPDATE_CHANNEL}
ac_add_options --enable-update-packaging
ac_add_options --enable-official-branding
ac_add_options --enable-calendar

# For NSS symbols
export MOZ_DEBUG_SYMBOLS=1

# Needed to enable breakpad in application.ini
export MOZILLA_OFFICIAL=1

# Don't install Lightning into Thunderbird
export DISABLE_LIGHTNING_INSTALL=1

# Make sure Lightning is also unified
mk_add_options MOZ_POSTFLIGHT_ALL+=calendar/lightning/build/universal.mk

# Enable parallel compiling
CONCURRENCY=$(( `sysctl hw.logicalcpu | awk {'print $2'}`  + 2 ))
mk_add_options MOZ_MAKE_FLAGS="-j$CONCURRENCY"

# Run client.py
mk_add_options CLIENT_PY_ARGS="$(cat $topsrcdir/build/client.py-args)"
mk_add_options ALWAYS_RUN_CLIENT_PY=1