Mobile/Fennec/Android/PatchQueue

From MozillaWiki
< Mobile‎ | Fennec‎ | Android
Revision as of 00:09, 7 May 2010 by Mbrubeck (talk | contribs) (new)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

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

ac_add_options --enable-application=browser
# For Fennec use this instead:
#ac_add_options --enable-application=mobile

ac_add_options --disable-ogg
ac_add_options --disable-wave

ac_add_options --with-arm-kuser

# Global options
ac_add_options --enable-debug
ac_add_options --disable-optimize
# libxul is required
ac_add_options --enable-libxul

# mobile options
ac_add_options --disable-installer
ac_add_options --disable-crashreporter
ac_add_options --disable-printing
ac_add_options --disable-javaxpcom

# android options
ac_add_options --target=arm-android-eabi

ac_add_options --with-android-ndk="CHANGE/PATH/TO/android-ndk-r3"
ac_add_options --with-android-sdk="CHANGE/PATH/TO/android-sdk-linux_86/platforms/android-6"
ac_add_options --with-android-tools="CHANGE/PATH/TO/android-sdk-linux_86/tools"
ac_add_options --with-endian=little
ac_add_options --enable-tree-freetype
ac_add_options --enable-faststripe
ac_add_options --disable-dbm
ac_add_options --disable-ctypes

# other options
ac_add_options --disable-necko-wifi
ac_add_options --disable-plugins

# ssltunnel can't build because the ndk doesn't have string, vector, or algorithm headers
ac_add_options --disable-tests