# 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-jemalloc
ac_add_options --enable-require-all-d3dc-versions

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

. $topsrcdir/build/win32/mozconfig.vs-latest

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

# Enable Adobe Primetime CDM on 32-bit Windows in Mozilla builds.
# Enabled here on the assumption that downstream vendors will not be using
# these build configs.
# Note: Widevine is automatically enabled by the build, and can be
# disabled with -widevine.
ac_add_options --enable-eme=+adobe

# Package js shell.
export MOZ_PACKAGE_JSSHELL=1
