Connected Devices/Projects/Project Tablet: Difference between revisions

Jump to navigation Jump to search
Build instructions
(Added link to Discourse)
(Build instructions)
Line 61: Line 61:
== Development ==
== Development ==
* The source code for an early prototype of the tablet UI is on GitHub [https://github.com/benfrancis/gecko-dev/tree/master/b2g/chrome here].
* The source code for an early prototype of the tablet UI is on GitHub [https://github.com/benfrancis/gecko-dev/tree/master/b2g/chrome here].
* This is an experimental branch of gecko which includes the prototype tablet chrome. To try out and hack on the prototype on a desktop PC you can build it in the same way you build [https://wiki.mozilla.org/Mulet Mulet], the B2G development environment.
* This is an experimental branch of Gecko which includes the prototype tablet chrome.
 
=== Building the Prototype ===
Building the prototype for a desktop PC is like [https://developer.mozilla.org/en-US/docs/Mozilla/Developer_guide/Build_Instructions/Simple_Firefox_build building Firefox], so make sure you have all the Firefox build pre-requisites installed. The prototype uses B2G's [https://wiki.mozilla.org/Mulet Mulet] development environment to run and debug the tablet chrome.
 
First clone the GitHub repository (this is a fork of mozilla-central on GitHub, it's best to create your own fork of this repository to checkout if you want to submit pull requests):
 
$ git clone https://github.com/benfrancis/gecko-dev.git
 
Checkout the tablet branch:
 
$ git checkout b2g-tablet
 
Create a file in the source code directory called "mozconfig" and add the following line to the file:
 
ac_add_options --enable-application=b2g/dev
 
Build:
 
$ ./mach build
 
Create a blank profile directory if you don't want to use your default Firefox profile:
 
$ mkdir profile
 
Run the chrome inside the development environment (hit F12 to show the developer tools on the right hand side) and scale it to size:
 
$ ./mach run -profile profile
 
You can also run the tablet chrome directly without the developer tools:
 
$ ./mach run -profile profile -chrome chrome://b2g/content/shell.html


== Meetings ==
== Meetings ==
Confirmed users
394

edits

Navigation menu