Auto-tools/Tools/AndroidBuildEnv

From MozillaWiki
Jump to: navigation, search

So you wanna build Android & Fennec E10S? Go get: http://10.250.0.34/public/QA/Virtualization/VMs-Build_Environment/AndroidBuildEnv.tar.gz (Mountain View Corp network, TODO: can we host this publicly somewhere so community folks can download it?)

  • username: mozilla
  • password mozillaateam

Android

  • cd ~/mozilla-droid
  • make -f client.mk
  • mozconfig is in ~/mozilla-droid

To update android build:

  • cd ~/mozilla-droid
  • hg pull -u
  • cd mobile
  • hg pull -u
  • cd ..
  • make -f client.mk build

Once it is built go into <objdir>/embedding/android

  • make
  • the fennec.apk is what you want to put on your android device.

F10S

Currently builds desktop linux, though it has all the necessary bits to build for n900 as well, but I haven't tested that

  • cd ~/projects/e10s
  • make -f client.mk build (mozconfig in e10s directory)

To update: this is built off the electrolysis build with dougt's patch queue (https://wiki.mozilla.org/Mobile/e10s):

  • from ~/projects/e10s
  • hg qpop -a
  • hg pull -u
  • cd mobile
  • hg pull -u
  • cd ..
  • cd .hg/patches
  • hg pull -u
  • cd ../.. (back to e10s)
  • hg qseries -v
  • hg qpush <name of last patch in qseries output>
  • make -f client.mk build

Once it is built, go into objdir/dist/bin:

  • cp ../../mobile/app/fennec .
  • ./fennec