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 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
117 Don't break the build! Waterfall is here: http://build.chromium.org/p/client.moj o/waterfall | 117 Don't break the build! Waterfall is here: http://build.chromium.org/p/client.moj o/waterfall |
118 | 118 |
119 ## Android Builds | 119 ## Android Builds |
120 | 120 |
121 To build for Android, first make sure you've downloaded build support for Androi d, which you would have done by adding --target_os=android when you ran `fetch m ojo`. If you didn't do that, there's an easy fix. Edit the file .gclient in your root Mojo directory (the parent directory to src.) Add this line at the end of the file: | 121 To build for Android, first make sure you've downloaded build support for Androi d, which you would have done by adding --target_os=android when you ran `fetch m ojo`. If you didn't do that, there's an easy fix. Edit the file .gclient in your root Mojo directory (the parent directory to src.) Add this line at the end of the file: |
122 | 122 |
123 ``` | 123 ``` |
124 target_os = [u'android'] | 124 target_os = [u'android'] |
125 ``` | 125 ``` |
126 | 126 |
127 Bring in android specific build dependencies: | |
128 ``` | |
129 build/install-build-deps-android.sh | |
tonyg
2015/02/26 00:22:59
For consistency, let's start this line with "$ "
sky
2015/02/26 00:31:02
Done.
| |
130 ``` | |
131 | |
127 Pull down all of the packages with this command: | 132 Pull down all of the packages with this command: |
128 | 133 |
129 ``` | 134 ``` |
130 $ gclient sync | 135 $ gclient sync |
131 ``` | 136 ``` |
132 | 137 |
133 Prepare the build directory for Android: | 138 Prepare the build directory for Android: |
134 | 139 |
135 ``` | 140 ``` |
136 $ mojo/tools/mojob.py gn --android | 141 $ mojo/tools/mojob.py gn --android |
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
212 ``` | 217 ``` |
213 ./out/Debug/mojo_shell mojo:sample_app | 218 ./out/Debug/mojo_shell mojo:sample_app |
214 ``` | 219 ``` |
215 | 220 |
216 3. Optional: Run Mojo Shell with an HTTP server | 221 3. Optional: Run Mojo Shell with an HTTP server |
217 ``` | 222 ``` |
218 cd out/Debug | 223 cd out/Debug |
219 python -m SimpleHTTPServer 4444 & | 224 python -m SimpleHTTPServer 4444 & |
220 ./mojo_shell --origin=http://127.0.0.1:4444 --disable-cache mojo:sample_app | 225 ./mojo_shell --origin=http://127.0.0.1:4444 --disable-cache mojo:sample_app |
221 ``` | 226 ``` |
OLD | NEW |