Mobile/Fennec/Android/PatchQueue
From MozillaWiki
Install the modified NDK with libstdc++ support: http://crystax.net/android/ndk.php
Get Michael Wu's Android patch queue and apply it to mozilla-central:
hg clone http://hg.mozilla.org/mozilla-central/ cd mozilla-central/.hg hg clone http://hg.mozilla.org/users/mwu_mozilla.com/test-repo/ patches cd .. hg clone http://hg.mozilla.org/mobile-browser/ mobile hg qpush -a
Put the following in your mozconfig file. Make sure you set the paths to the NDK/SDK appropriately.
# Uncomment these two lines to use objdir with client.mk #OBJDIR=objdir-android #mk_add_options MOZ_OBJDIR=@TOPSRCDIR@/$OBJDIR # Global options ac_add_options --disable-debug ac_add_options --enable-optimize # Build Fennec ac_add_options --enable-application=mobile # Android ac_add_options --target=arm-android-eabi ac_add_options --with-endian=little ac_add_options --with-android-ndk="/PATH/TO/android-ndk-r4-crystax" ac_add_options --with-android-sdk="/PATH/TO/android-sdk/platforms/android-8" ac_add_options --with-android-tools="/PATH/TO/android-sdk/tools" # ssltunnel can't build because the ndk doesn't have string, vector, or algorithm headers ac_add_options --disable-tests