# Please note the restrictions on official branding when using this line.
# ac_add_options --enable-official-branding

_BUILD_64=1

# Set GTK Version to 2 or 3
_GTK_VERSION=3

ac_add_options --enable-optimize="-O2 -w"
ac_add_options --enable-default-toolkit=cairo-gtk$_GTK_VERSION
ac_add_options --enable-jemalloc
ac_add_options --enable-strip
ac_add_options --enable-devtools
ac_add_options --enable-av1
ac_add_options --enable-jxl
ac_add_options --disable-webrtc
ac_add_options --disable-gamepad
ac_add_options --disable-tests
ac_add_options --disable-debug
ac_add_options --disable-necko-wifi
ac_add_options --disable-updater
ac_add_options --with-pthreads


#   unofficial branding.
ac_add_options --disable-official-branding
# ac_add_options --disable-update-channel=release
ac_add_options --disable-official-vendor

export MOZ_PKG_SPECIAL=gtk$_GTK_VERSION

export MOZILLA_OFFICIAL=0

# Disable telemetry reporting
export MOZ_TELEMETRY_REPORTING=

export MOZ_APP_NAME=newmoon
# export MOZ_APP_BASENAME=newmoon

ac_add_options --with-app-name=newmoon
# ac_add_options --with-app-basename=newmoon
ac_add_options --with-branding="palemoon/branding/unofficial"

