OLD | NEW |
1 Mojo | 1 Mojo |
2 ==== | 2 ==== |
3 | 3 |
4 Mojo is an effort to extract a common platform out of Chrome's renderer and plug
in processes that can support multiple types of sandboxed content, such as HTML,
Pepper, or NaCl. | 4 Mojo is an effort to extract a common platform out of Chrome's renderer and plug
in processes that can support multiple types of sandboxed content, such as HTML,
Pepper, or NaCl. |
5 | 5 |
6 ## Set up your environment | 6 ## Set up your environment |
7 | 7 |
8 The instructions below only need to be done once. Note that a simple "git clone"
command is not sufficient to build the source code because this repo uses the g
client command from depot_tools to manage most third party dependencies. | 8 The instructions below only need to be done once. Note that a simple "git clone"
command is not sufficient to build the source code because this repo uses the g
client command from depot_tools to manage most third party dependencies. |
9 | 9 |
10 1. Download depot_tools and make sure it is in your path:<br>http://www.chromium
.org/developers/how-tos/install-depot-tools<br> | 10 1. Download depot_tools and make sure it is in your path:<br>http://www.chromium
.org/developers/how-tos/install-depot-tools<br> |
(...skipping 185 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
196 mojo/tools/mojob.py build --android | 196 mojo/tools/mojob.py build --android |
197 ``` | 197 ``` |
198 | 198 |
199 2. Push mojo_shell to to your device: | 199 2. Push mojo_shell to to your device: |
200 ``` | 200 ``` |
201 adb install -r out/android_Debug/apks/MojoShell.apk | 201 adb install -r out/android_Debug/apks/MojoShell.apk |
202 ``` | 202 ``` |
203 | 203 |
204 3. Run Mojo Shell on the device: | 204 3. Run Mojo Shell on the device: |
205 ``` | 205 ``` |
206 mojo/tools/android_mojo_shell.py mojo:sample_app | 206 mojo/tools/android_mojo_shell.py mojo:spinning_cube |
207 ``` | 207 ``` |
208 If this fails and prints: | 208 If this fails and prints: |
209 ``` | 209 ``` |
210 error: closed | 210 error: closed |
211 error: closed | 211 error: closed |
212 ``` | 212 ``` |
213 ... then you may not have a new enough build of Android on your device. You need
L (Lollipop) or later. | 213 ... then you may not have a new enough build of Android on your device. You need
L (Lollipop) or later. |
214 | 214 |
215 4. If you get a crash you won't see symbols. Use tools/android_stack_parser/stac
k to map back to symbols, e.g.: | 215 4. If you get a crash you won't see symbols. Use tools/android_stack_parser/stac
k to map back to symbols, e.g.: |
216 ``` | 216 ``` |
217 adb logcat | ./tools/android_stack_parser/stack | 217 adb logcat | ./tools/android_stack_parser/stack |
218 ``` | 218 ``` |
219 | 219 |
220 ### On Linux | 220 ### On Linux |
221 | 221 |
222 1. Build the mojo target as described under [link](#buildmojo). | 222 1. Build the mojo target as described under [link](#buildmojo). |
223 | 223 |
224 2. Run Mojo Shell: | 224 2. Run Mojo Shell: |
225 ``` | 225 ``` |
226 ./out/Debug/mojo_shell mojo:sample_app | 226 ./out/Debug/mojo_shell mojo:spinning_cube |
227 ``` | 227 ``` |
228 | 228 |
229 3. Optional: Run Mojo Shell with an HTTP server | 229 3. Optional: Run Mojo Shell with an HTTP server |
230 ``` | 230 ``` |
231 cd out/Debug | 231 cd out/Debug |
232 python -m SimpleHTTPServer 4444 & | 232 python -m SimpleHTTPServer 4444 & |
233 ./mojo_shell --origin=http://127.0.0.1:4444 --disable-cache mojo:sample_app | 233 ./mojo_shell --origin=http://127.0.0.1:4444 --disable-cache mojo:spinning_cu
be |
234 ``` | 234 ``` |
OLD | NEW |