Skip to content

Instantly share code, notes, and snippets.

@pocmo
Created October 24, 2016 16:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pocmo/cdfcd76d6638c7ad2b3dea8ee96d6c1e to your computer and use it in GitHub Desktop.
Save pocmo/cdfcd76d6638c7ad2b3dea8ee96d6c1e to your computer and use it in GitHub Desktop.
##############################################################
# Build Firefox for Android ##################################
##############################################################
ac_add_options --enable-application=mobile/android
mk_add_options MOZ_OBJDIR=./objdir-frontend
# Artifact builds (Fox yeah!)
ac_add_options --enable-artifact-builds
# Android SDK
ac_add_options --with-android-sdk=/Users/sebastian/Library/Android/sdk
# Android NDK
# ac_add_options --with-android-ndk="/Users/sebastian/.mozbuild/android-ndk-r11b"
##############################################################
### Architecutre #############################################
##############################################################
# ARM
ac_add_options --target=arm-linux-androideabi
# x86
# ac_add_options --target=i386-linux-android
##############################################################
### Features #################################################
##############################################################
# Do not build bouncer
export MOZ_ANDROID_PACKAGE_INSTALL_BOUNCER=
# Activity Stream
export MOZ_ANDROID_ACTIVITY_STREAM=1
# Distribution
ac_add_options --with-android-distribution-directory=/Users/sebastian/Projects/Mozilla/random/fennec-distribution-sample
# Custom tabs
# export MOZ_ANDROID_CUSTOM_TABS=1
# ccache
# ac_add_options --with-ccache
# no fonts
# export MOZ_ANDROID_EXCLUDE_FONTS=1
# downloadable content
# export MOZ_ANDROID_DOWNLOAD_CONTENT_SERVICE=1
# disable gecko view
# export MOZ_DISABLE_GECKOVIEW=1
# constrained build
# export MOZ_ANDROID_RESOURCE_CONSTRAINED=1
# Testing updater
# ac_add_options --enable-updater
# ac_add_options --enable-update-channel=nightly
##############################################################
### Experimental full gradle build ###########################
##############################################################
# ac_add_options --enable-artifact-builds
# ac_add_options --with-gradle
# mk_add_options MOZ_OBJDIR=./objdir-gradle
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment