mk_add_options MOZ_OBJDIR=COOKBOOK_BUILD
mk_add_options MOZ_PARALLEL_BUILD=NPROC
ac_add_options --target=TARGET
ac_add_options --disable-debug
ac_add_options --disable-tests
ac_add_options --disable-audio-backends
ac_add_options --disable-crashreporter
ac_add_options --disable-updater
ac_add_options --disable-dbus
ac_add_options --disable-profiling
ac_add_options --disable-dmd # dark matter detector
ac_add_options --without-wasm-sandboxed-libraries # need clang wasi

# TODO: cairo-gtk3-x11-wayland or separate cairo-gtk3-wayland-only
ac_add_options --enable-default-toolkit=cairo-gtk3-x11-only
ac_add_options --enable-bootstrap=-clang # only use our clang
ac_add_options --disable-release # todo enable later
ac_add_options --with-system-nspr
ac_add_options --with-system-zlib
ac_add_options --with-system-icu
ac_add_options --enable-system-ffi
ac_add_options --enable-system-pixman
ac_add_options --enable-frame-pointers
ac_add_options --disable-jit # todo verify mcontext work and patch
ac_add_options --disable-hardening
ac_add_options --disable-tests

export MOZ_REQUIRE_SIGNING=
export MOZ_TELEMETRY_REPORTING=
export HOST_CC="sccache gcc"
export HOST_CXX="sccache g++"
export CC="TARGET_CC"
export CXX="TARGET_CXX"
