B2gdroid: Difference between revisions

From MozillaWiki
Jump to navigation Jump to search
(→‎Building: Add not about Android support library 22.0.1)
(→‎Building: adding mozconfig info for apz)
 
(9 intermediate revisions by 2 users not shown)
Line 1: Line 1:
== Presentation ==
== Presentation ==
B2GDroid is an Android homescreen that provides the same user experience as Firefox OS. It's a GeckoView consumer with Gaia pre-packaged, and as many b2g APIs as possible.
Firefox OS developer preview (aka B2GDroid) is an Android homescreen that provides the same user experience as Firefox OS. It's a GeckoView consumer with Gaia pre-packaged, and as many b2g APIs as possible.


== Building ==
== Building ==
Line 20: Line 20:
</pre>
</pre>


(For this step to install all the necessary tools you need the patch here: https://bugzilla.mozilla.org/show_bug.cgi?id=1205405)
<li>Manually install version 22.0.1 of the Android SDK Support package. See https://mail.mozilla.org/pipermail/mobile-firefox-dev/2015-August/001401.html for details.</li>
 
<li>Clone the repository containing the fonts used in FirefoxOS from https://github.com/mozilla-b2g/moztt somewhere and create a symlink or move it to `$topsrcdir/moz-tt` where m`$topsrcdir` is the Mozilla source tree clone.</li>
<li>Clone the Gaia repository from https://github.com/mozilla-b2g/gaia.git and create a symlink or move it to `$topsrcdir/gaia` where `$topsrcdir` is the Mozilla source tree clone.</li>
<li>Create a mozconfig and include `ac_add_option --enable-application=mobile/android/b2gdroid` and `ac_add_options --enable-android-apz
`.
<li>Run `mach configure`, `mach build`, `mach package` and finally, with an Android device attached, `mach install` to install the APK to the device.</li>
</ol>
</ol>
<li>Manually install version 22.0.1 of the Android SDK Support package. See https://mobile.etherpad.mozilla.org/109 for details.</li>
TODO

Latest revision as of 15:56, 16 November 2015

Presentation

Firefox OS developer preview (aka B2GDroid) is an Android homescreen that provides the same user experience as Firefox OS. It's a GeckoView consumer with Gaia pre-packaged, and as many b2g APIs as possible.

Building

  1. Clone the Mozilla source tree
  2. $ hg clone https://hg.mozilla.org/mozilla-central
  3. In the Mozilla source tree, run `./mach bootstrap` and select build "Firefox for Android". This will install the necessary Android SDKs and the Android NDK.
  4. $ cd mozilla-central
    $ ./mach bootstrap
      Please choose the version of Firefox you want to build:
      1. Firefox for Desktop
      2. Firefox for Android
      Your choice:
      2
    
  5. Manually install version 22.0.1 of the Android SDK Support package. See https://mail.mozilla.org/pipermail/mobile-firefox-dev/2015-August/001401.html for details.
  6. Clone the repository containing the fonts used in FirefoxOS from https://github.com/mozilla-b2g/moztt somewhere and create a symlink or move it to `$topsrcdir/moz-tt` where m`$topsrcdir` is the Mozilla source tree clone.
  7. Clone the Gaia repository from https://github.com/mozilla-b2g/gaia.git and create a symlink or move it to `$topsrcdir/gaia` where `$topsrcdir` is the Mozilla source tree clone.
  8. Create a mozconfig and include `ac_add_option --enable-application=mobile/android/b2gdroid` and `ac_add_options --enable-android-apz `.
  9. Run `mach configure`, `mach build`, `mach package` and finally, with an Android device attached, `mach install` to install the APK to the device.