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

Side by Side Diff: README.md

Issue 1411133004: Reorder README sections. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 1 month 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 | no next file » | 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 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 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 Bring in Android-specific build dependencies: 54 Bring in Android-specific build dependencies:
55 ``` 55 ```
56 $ build/install-build-deps-android.sh 56 $ build/install-build-deps-android.sh
57 ``` 57 ```
58 58
59 Pull down all of the packages with this command: 59 Pull down all of the packages with this command:
60 ``` 60 ```
61 $ gclient sync 61 $ gclient sync
62 ``` 62 ```
63 63
64 ## Update your checkout
65
66 You can update your checkout like this. The order is important. You must do the
67 `git pull` first because `gclient sync` is dependent on the current revision.
68
69 ```
70 # Fetch changes from upstream and rebase the current branch on top
71 $ git pull --rebase
etiennej 2015/11/02 13:59:39 Rebase being optional, do we want to mention it he
ppi 2015/11/02 14:09:15 What happens when you have local changes on the br
etiennej 2015/11/02 14:26:10 Acknowledged following offline discussion.
72 # Update all modules as directed by the DEPS file
73 $ gclient sync
74 ```
75
76 You do not need to rerun `gn gen out/Debug` - ninja does so automatically each
77 time you build. You might need to rerun `mojo/tools/mojob.py gn` if the GN
78 flags have changed.
79
64 ## <a name="buildmojo"></a>Build Mojo 80 ## <a name="buildmojo"></a>Build Mojo
65 81
66 ### Linux 82 ### Linux
67 83
68 Build Mojo for Linux by running: 84 Build Mojo for Linux by running:
69 85
70 ``` 86 ```
71 $ ninja -C out/Debug -j 10 87 $ ninja -C out/Debug -j 10
72 ``` 88 ```
73 89
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
138 ``` 154 ```
139 $ ninja -C out/Debug -j 1000 155 $ ninja -C out/Debug -j 1000
140 ``` 156 ```
141 157
142 ### Official builds 158 ### Official builds
143 159
144 Official builds for android generate a signed Mojo Shell intended for 160 Official builds for android generate a signed Mojo Shell intended for
145 distribution. You normally should not need to produce one. If you have any 161 distribution. You normally should not need to produce one. If you have any
146 questions, reach out to [etiennej@chromium.org](mailto:etiennej@chromium.org). 162 questions, reach out to [etiennej@chromium.org](mailto:etiennej@chromium.org).
147 163
148 ## Update your checkout
149
150 You can update your checkout like this. The order is important. You must do the
151 `git pull` first because `gclient sync` is dependent on the current revision.
152 ```
153 # Fetch changes from upstream and rebase the current branch on top
154 $ git pull --rebase
155 # Update all modules as directed by the DEPS file
156 $ gclient sync
157 ```
158
159 You do not need to rerun `gn gen out/Debug` - ninja does so automatically each
160 time you build. You might need to rerun `mojo/tools/mojob.py gn` if the GN
161 flags have changed.
162
163 ## Run Mojo Shell 164 ## Run Mojo Shell
164 165
165 Devtools `mojo_run` is a universal shell runner abstracting away the differences 166 Devtools `mojo_run` is a universal shell runner abstracting away the differences
166 between running on Linux and Android. 167 between running on Linux and Android.
167 168
168 Having built Mojo as described above, a demo app can be run as follows: 169 Having built Mojo as described above, a demo app can be run as follows:
169 170
170 ``` 171 ```
171 mojo/devtools/common/mojo_run https://core.mojoapps.io/spinning_cube.mojo # Lin ux 172 mojo/devtools/common/mojo_run https://core.mojoapps.io/spinning_cube.mojo # Lin ux
172 mojo/devtools/common/mojo_run https://core.mojoapps.io/spinning_cube.mojo --andr oid # Android 173 mojo/devtools/common/mojo_run https://core.mojoapps.io/spinning_cube.mojo --andr oid # Android
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after
295 making your first change: [C++ in Chromium 296 making your first change: [C++ in Chromium
296 101](http://dev.chromium.org/developers/cpp-in-chromium-101-codelab). 297 101](http://dev.chromium.org/developers/cpp-in-chromium-101-codelab).
297 298
298 To land a change after receiving LGTM: 299 To land a change after receiving LGTM:
299 ``` 300 ```
300 $ git cl land 301 $ git cl land
301 ``` 302 ```
302 303
303 Don't break the build! Waterfall is here: 304 Don't break the build! Waterfall is here:
304 http://build.chromium.org/p/client.mojo/waterfall 305 http://build.chromium.org/p/client.mojo/waterfall
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698