# 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}
ac_add_options --with-mozilla-api-keyfile=/c/builds/mozilla-desktop-geoloc-api.key

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

export MOZ_TELEMETRY_REPORTING=1

# Treat warnings as errors (modulo ALLOW_COMPILER_WARNINGS).
ac_add_options --enable-warnings-as-errors

. $topsrcdir/build/win64/mozconfig.vs2013

# Enable Adobe Primetime CDM on 64-bit Windows in Mozilla builds.
# Enabled here on the assumption that downstream vendors will not be using
# these build configs.
ac_add_options --enable-eme=adobe

# Package js shell.
export MOZ_PACKAGE_JSSHELL=1
