# Tell the build system if we're building 64-bit.
# Set this to `BUILD_64=1` for 64-bit, leave as-is for 32-bit
BUILD_64=1

# Processor architecture specific build options
if [ -n "$BUILD_64" ]; then
  BUILD_ARCH=x64
  ac_add_options --target=x86_64-pc-mingw32
  ac_add_options --host=x86_64-pc-mingw32
else
  BUILD_ARCH=x86
fi

# Automatically clobber if CLOBBER was touched
mk_add_options AUTOCLOBBER=1

# Set Basilisk version to date timestamp
export BASILISK_VERSION=1

export MOZILLA_OFFICIAL=1

# Standard build options for Basilisk
ac_add_options --enable-application=basilisk
ac_add_options --enable-optimize="-O2 -GTs -GS- -Qspectre -utf-8"
ac_add_options --enable-update-channel=release
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 --enable-webrtc
ac_add_options --enable-gamepad
ac_add_options --disable-tests
ac_add_options --disable-debug
ac_add_options --disable-official-branding
ac_add_options --disable-updater
ac_add_options --disable-precompiled-startupcache

WIN32_REDIST_DIR="C:/Program Files/Microsoft Visual Studio/2022/Enterprise/VC/redist/MSVC/14.42.34433/$BUILD_ARCH/Microsoft.VC143.CRT"
WIN_UCRT_REDIST_DIR="C:/Program Files (x86)/Windows Kits/10/Redist/10.0.22621.0/ucrt/DLLs/$BUILD_ARCH"
