build/mozconfig.comm-support
author Philipp Kewisch <mozilla@kewis.ch>
Thu, 22 Feb 2018 07:47:47 +0100
changeset 30546 4151d5bee5b7d4a491556ea4e3ed57f36fb4ed62
parent 29294 539567e1f723a51400d5b14b32c0267d1ce210a9
permissions -rw-r--r--
Bug 1440490 - Move l10n related functions into calL10NUtils.jsm - part 4 - Migrate getLtnString. r=MakeMyDay MozReview-Commit-ID: DRN181PLsSh

# This file exists to support comm-central from building with mozilla-central
# as a subdirectory to building as a subdirectory of mozilla-central.

# In order to have mozconfig files that support building in either
# configuration during the transition, without duplicating the logic
# in every mozconfig file, there needs to exist a file that exists at the
# same path in mozilla-central and comm-central.

# This file sets some variables that can be used by the rest of the mozconfig
# to find other include files.

if [ -d "$topsrcdir/mail" ]; then
  # Building with comm-central as top-level directory.
  commtopsrcdir=$topsrcdir
  MOZ_IS_COMM_TOPDIR=1
elif [ -d "$topsrcdir/comm/mail" ]; then
  # Building with mozila-central as top-level directory.
  commtopsrcdir=$topsrcdir/comm
else
  echo "ERROR: Unknown build directory layout."
  exit 1
fi