| 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 29 matching lines...) Expand all Loading... |
| 40 | 40 |
| 41 (If you are a Googler, see the section at the end of this document for faster bu
ilds.) | 41 (If you are a Googler, see the section at the end of this document for faster bu
ilds.) |
| 42 | 42 |
| 43 You can also use the mojob.py script for building. This script automatically cal
ls ninja and sets -j to an appropriate value based on whether Goma is present. Y
ou cannot specify a target name with this script. | 43 You can also use the mojob.py script for building. This script automatically cal
ls ninja and sets -j to an appropriate value based on whether Goma is present. Y
ou cannot specify a target name with this script. |
| 44 ``` | 44 ``` |
| 45 mojo/tools/mojob.py build | 45 mojo/tools/mojob.py build |
| 46 ``` | 46 ``` |
| 47 | 47 |
| 48 Run a demo: | 48 Run a demo: |
| 49 ``` | 49 ``` |
| 50 mojo/tools/mojo_demo.sh --browser | 50 mojo/tools/mojo_demo.py --browser |
| 51 ``` | 51 ``` |
| 52 | 52 |
| 53 Run the tests: | 53 Run the tests: |
| 54 ``` | 54 ``` |
| 55 mojo/tools/mojob.py test | 55 mojo/tools/mojob.py test |
| 56 ``` | 56 ``` |
| 57 | 57 |
| 58 ## Update your repo | 58 ## Update your repo |
| 59 | 59 |
| 60 You can update your repo like this: | 60 You can update your repo like this: |
| (...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 143 ``` | 143 ``` |
| 144 use_goma = true | 144 use_goma = true |
| 145 ``` | 145 ``` |
| 146 | 146 |
| 147 After you close the editor, the "gn args" command will automatically run "gn gen
out/Debug" again. | 147 After you close the editor, the "gn args" command will automatically run "gn gen
out/Debug" again. |
| 148 | 148 |
| 149 Now you can dramatically increase the number of parallel tasks: | 149 Now you can dramatically increase the number of parallel tasks: |
| 150 ``` | 150 ``` |
| 151 $ ninja -C out/Debug -j 1000 | 151 $ ninja -C out/Debug -j 1000 |
| 152 ``` | 152 ``` |
| OLD | NEW |