# 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/suite/config/version.txt"; then
  unset CC
  unset CXX
fi

# Make sure Lightning is also unified, this needs to happen before including
# the universal mozconfig because Lightning's univeral.mk needs to run first.
mk_add_options MOZ_POSTFLIGHT_ALL+=calendar/lightning/build/universal.mk

. $topsrcdir/build/macosx/universal/mozconfig

ac_add_options --enable-application=suite
ac_add_options --enable-update-channel=${MOZ_UPDATE_CHANNEL}
ac_add_options --disable-install-strip
ac_add_options --enable-profiling
ac_add_options --enable-calendar

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

# Disable checking that add-ons are signed by the trusted root
MOZ_ADDON_SIGNING=0
# Disable enforcing that add-ons are signed by the trusted root
MOZ_REQUIRE_SIGNING=0
