Files
zeekay bf3d313e14 feat: Add Android build workflow and fix mozconfig env vars
- Add android-release-build.yml CI workflow for arm64-v8a, armeabi-v7a,
  and x86_64 Android targets using GeckoView
- Add configs/android/mozconfig for Android build configuration
- Fix critical bug: ZEN_ env var prefix in linux, macos, and windows
  mozconfigs now correctly use ENSO_ prefix (release optimizations
  and PGO were broken without this fix)
- Wire Android build into main build.yml release pipeline
2026-02-10 00:33:40 -08:00

50 lines
1.5 KiB
Plaintext

# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
# Android-specific build configuration for Enso Browser
# Use GeckoView as the application
ac_add_options --enable-application=mobile/android
# Target architecture
if test "$SURFER_COMPAT" = "aarch64"; then
ac_add_options --target=aarch64-linux-android
elif test "$SURFER_COMPAT" = "arm"; then
ac_add_options --target=armv7-linux-androideabi
elif test "$SURFER_COMPAT" = "x86_64"; then
ac_add_options --target=x86_64-linux-android
fi
# Android SDK/NDK paths (set by mach bootstrap)
# ac_add_options --with-android-sdk="$ANDROID_SDK_ROOT"
# ac_add_options --with-android-ndk="$ANDROID_NDK_ROOT"
# Compiler setup
if test -d "$HOME/.mozbuild/clang/bin"; then
export CC="$HOME/.mozbuild/clang/bin/clang"
export CXX="$HOME/.mozbuild/clang/bin/clang++"
fi
if test "$ENSO_RELEASE"; then
ac_add_options --enable-optimize
ac_add_options --enable-release
ac_add_options --disable-debug
ac_add_options --disable-debug-symbols
ac_add_options --disable-tests
ac_add_options --disable-geckodriver
ac_add_options --enable-rust-simd
export MOZ_LTO=cross,thin
ac_add_options --enable-lto=cross,thin
ac_add_options --enable-install-strip
ac_add_options --enable-strip
fi
# Disable telemetry
mk_add_options MOZ_DATA_REPORTING=
mk_add_options MOZ_SERVICES_HEALTHREPORT=
mk_add_options MOZ_TELEMETRY_REPORTING=