# This file is sourced by the nightly, beta, and release mozconfigs.

. "$topsrcdir/browser/config/mozconfigs/common"

ac_add_options --enable-update-channel=${MOZ_UPDATE_CHANNEL}
ac_add_options --enable-update-packaging
ac_add_options --enable-jemalloc
if [ -f /c/builds/gapi.data ]; then
  _gapi_keyfile=/c/builds/gapi.data
else
  _gapi_keyfile=/e/builds/gapi.data
fi
ac_add_options --with-google-api-keyfile=${_gapi_keyfile}

if [ -f /c/builds/google-oauth-api.key ]; then
  _google_oauth_api_keyfile=/c/builds/google-oauth-api.key
else
  _google_oauth_api_keyfile=/e/builds/google-oauth-api.key
fi
ac_add_options --with-google-oauth-api-keyfile=${_google_oauth_api_keyfile}

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

export MOZ_TELEMETRY_REPORTING=1

# Package js shell.
export MOZ_PACKAGE_JSSHELL=1
