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 | 4 Mojo is an effort to extract a common platform out of Chrome's renderer and |
5 plugin processes that can support multiple types of sandboxed content, such as | 5 plugin processes that can support multiple types of sandboxed content, such as |
6 HTML, Pepper, or NaCl. | 6 HTML, Pepper, or NaCl. |
7 | 7 |
8 ## Set-up and code check-out | 8 ## Set-up and code check-out |
9 | 9 |
10 The instructions below only need to be done once. Note that a simple "git clone" | 10 The instructions below only need to be done once. Note that a simple "git clone" |
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
103 To build for Android, first make sure that your checkout is [configured](#config ure-android) to build | 103 To build for Android, first make sure that your checkout is [configured](#config ure-android) to build |
104 for Android. After that you can use the mojob script as follows: | 104 for Android. After that you can use the mojob script as follows: |
105 ``` | 105 ``` |
106 $ mojo/tools/mojob.py gn --android | 106 $ mojo/tools/mojob.py gn --android |
107 $ mojo/tools/mojob.py build --android | 107 $ mojo/tools/mojob.py build --android |
108 ``` | 108 ``` |
109 | 109 |
110 The result will be in out/android_Debug. If you see javac compile errors, | 110 The result will be in out/android_Debug. If you see javac compile errors, |
111 [make sure you have an up-to-date JDK](https://code.google.com/p/chromium/wiki/A ndroidBuildInstructions#Install_Java_JDK) | 111 [make sure you have an up-to-date JDK](https://code.google.com/p/chromium/wiki/A ndroidBuildInstructions#Install_Java_JDK) |
112 | 112 |
113 #### Marshmallow | |
114 Running mojo on Marshmallow might raise an Exception `"Unable to find fifo"`. As | |
115 a temporary solution, you can go to `Settings` -> `Apps` -> `Mojo Shell (dev)` | |
116 -> `Permissions` and allow for `Storage`. | |
117 | |
118 *Explanation*: Starting in API level 23 (Marshmallow) the applications need to | |
etiennej
2015/10/30 16:20:28
I don't think you should put explanation here. I s
| |
119 request read/write permissions at runtime. An exception to this rule is for | |
120 files stored in the folder returned by method [Context.getExternalFilesDir(Strin g)](http://developer.android.com/reference/android/content/Context.html#getExter nalFilesDir(java.lang.String)) | |
121 which can be used without permissions. This folder looks like | |
122 `"/storage/emulated/0/Android/data/org.chromium.mojo.shell/files"`. Ideally we | |
123 should write files (e.g. the argument's file, used when starting the application ) | |
124 in this directory. However, for some reasons, we cannot do it for now when the | |
125 phone is not rooted. As a temporary fix, you can manually add storage permission s | |
126 for the Mojo Shell app the exception should disappear. | |
127 | |
113 ### Goma (Googlers only) | 128 ### Goma (Googlers only) |
114 | 129 |
115 If you're a Googler, you can use Goma, a distributed compiler service for | 130 If you're a Googler, you can use Goma, a distributed compiler service for |
116 open-source projects such as Chrome and Android. If Goma is installed in the | 131 open-source projects such as Chrome and Android. If Goma is installed in the |
117 default location (~/goma), it will work out-of-the-box with the `mojob.py gn`, | 132 default location (~/goma), it will work out-of-the-box with the `mojob.py gn`, |
118 `mojob.py build` workflow described above. | 133 `mojob.py build` workflow described above. |
119 | 134 |
120 You can also manually add: | 135 You can also manually add: |
121 ``` | 136 ``` |
122 use_goma = true | 137 use_goma = true |
(...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
289 making your first change: [C++ in Chromium | 304 making your first change: [C++ in Chromium |
290 101](http://dev.chromium.org/developers/cpp-in-chromium-101-codelab). | 305 101](http://dev.chromium.org/developers/cpp-in-chromium-101-codelab). |
291 | 306 |
292 To land a change after receiving LGTM: | 307 To land a change after receiving LGTM: |
293 ``` | 308 ``` |
294 $ git cl land | 309 $ git cl land |
295 ``` | 310 ``` |
296 | 311 |
297 Don't break the build! Waterfall is here: | 312 Don't break the build! Waterfall is here: |
298 http://build.chromium.org/p/client.mojo/waterfall | 313 http://build.chromium.org/p/client.mojo/waterfall |
OLD | NEW |