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

Side by Side Diff: README.md

Issue 809583002: GN: add default target. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Deprecate Created 6 years 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 | « BUILD.gn ('k') | mojo/tools/mojob.py » ('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 17 matching lines...) Expand all
28 28
29 `install-build-deps.sh` installs any packages needed to build, then `mojo/tools/ mojob.py gn` runs `gn args` and configures the build directory, out/Debug. 29 `install-build-deps.sh` installs any packages needed to build, then `mojo/tools/ mojob.py gn` runs `gn args` and configures the build directory, out/Debug.
30 30
31 If the fetch command fails, you will need to delete the src directory and start over. 31 If the fetch command fails, you will need to delete the src directory and start over.
32 32
33 ## Build Mojo 33 ## Build Mojo
34 34
35 Build Mojo by running: 35 Build Mojo by running:
36 36
37 ``` 37 ```
38 $ ninja -C out/Debug -j 10 root 38 $ ninja -C out/Debug -j 10
39 ``` 39 ```
40 40
41 The "root" parameter specifies the target to build, it's not a special keyword. You can find the "root" target in src/BUILD.gn.
42
43 (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.)
44 42
45 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.
46 ``` 44 ```
47 mojo/tools/mojob.py build 45 mojo/tools/mojob.py build
48 ``` 46 ```
49 47
50 Run a demo: 48 Run a demo:
51 ``` 49 ```
52 mojo/tools/mojo_demo.sh --browser 50 mojo/tools/mojo_demo.sh --browser
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
143 141
144 Add this line to the end of the file: 142 Add this line to the end of the file:
145 ``` 143 ```
146 use_goma = true 144 use_goma = true
147 ``` 145 ```
148 146
149 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.
150 148
151 Now you can dramatically increase the number of parallel tasks: 149 Now you can dramatically increase the number of parallel tasks:
152 ``` 150 ```
153 $ ninja -C out/Debug -j 1000 root 151 $ ninja -C out/Debug -j 1000
154 ``` 152 ```
OLDNEW
« no previous file with comments | « BUILD.gn ('k') | mojo/tools/mojob.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698