. $topsrcdir/browser/config/mozconfig

mk_add_options MOZ_OBJDIR=@TOPSRCDIR@/obj-@CONFIG_GUESS@
mk_add_options MOZ_APP_DISPLAYNAME="Tor Browser"
export MOZILLA_OFFICIAL=1

# We want to build with clang now and point to the GCC toolchain until #29041 is
# fixed. We explicitly need to define the host compiler as well as for some
# reason the gcc-toolchain argument does not get passed along otherwise.
CC="clang --gcc-toolchain=/var/tmp/dist/gcc"
CXX="clang++ --gcc-toolchain=/var/tmp/dist/gcc"
HOST_CC=$CC
HOST_CXX=$CXX

export BINDGEN_CFLAGS='--gcc-toolchain=/var/tmp/dist/gcc'

ac_add_options --enable-optimize
ac_add_options --enable-rust-simd
ac_add_options --enable-official-branding

# Let's support GTK3 for ESR60
ac_add_options --enable-default-toolkit=cairo-gtk3

ac_add_options --enable-tor-browser-update
ac_add_options --enable-verify-mar

ac_add_options --disable-strip
ac_add_options --disable-install-strip
ac_add_options --disable-tests
ac_add_options --disable-debug
ac_add_options --disable-crashreporter
ac_add_options --disable-webrtc
ac_add_options --disable-parental-controls
# Let's make sure no preference is enabling either Adobe's or Google's CDM.
ac_add_options --disable-eme
ac_add_options --enable-proxy-bypass-protection
# We want to bundle an own geckodriver, so we can use it for QA and other work
ac_add_options --enable-geckodriver

# Disable telemetry
ac_add_options MOZ_TELEMETRY_REPORTING=
