Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(23)

Side by Side Diff: README.md

Issue 967563002: Rename sample_app -> spinning_cube. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Rebase. Created 5 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | examples/BUILD.gn » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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 ```
OLDNEW
« no previous file with comments | « no previous file | examples/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698