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

Side by Side Diff: README.md

Issue 953953003: Introduce dartanalyze into our build. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: mojob integration Created 5 years, 9 months 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/public/dart/rules.gni » ('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 132 matching lines...) Expand 10 before | Expand all | Expand 10 after
143 143
144 Finally, perform the build. The result will be in out/android_Debug: 144 Finally, perform the build. The result will be in out/android_Debug:
145 145
146 ``` 146 ```
147 $ mojo/tools/mojob.py build --android 147 $ mojo/tools/mojob.py build --android
148 ``` 148 ```
149 149
150 If you see javac compile errors, make sure you have an up-to-date JDK: 150 If you see javac compile errors, make sure you have an up-to-date JDK:
151 https://code.google.com/p/chromium/wiki/AndroidBuildInstructions#Install_Java_JD K 151 https://code.google.com/p/chromium/wiki/AndroidBuildInstructions#Install_Java_JD K
152 152
153 ## Dart Code
154
155 Because the dart analyzer is a bit slow, we don't run it unless the user specifi cally asks for it. To run the dart analyzer against the list of dart targets in the toplevel BUILD.gn file, run:
156
157 ```
158 $ mojo/tools/mojob.py dartcheck
159 ```
160
153 ## Googlers 161 ## Googlers
154 162
155 If you're a Googler, you can use Goma, a distributed compiler service for open-s ource projects such as Chrome and Android. The instructions below assume that Go ma is installed in the default location (~/goma). 163 If you're a Googler, you can use Goma, a distributed compiler service for open-s ource projects such as Chrome and Android. The instructions below assume that Go ma is installed in the default location (~/goma).
156 164
157 To enable Goma, update your "args.gn" file. Open the file in your editor with th is command: 165 To enable Goma, update your "args.gn" file. Open the file in your editor with th is command:
158 ``` 166 ```
159 $ gn args out/Debug 167 $ gn args out/Debug
160 ``` 168 ```
161 169
162 Add this line to the end of the file: 170 Add this line to the end of the file:
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
217 ``` 225 ```
218 ./out/Debug/mojo_shell mojo:sample_app 226 ./out/Debug/mojo_shell mojo:sample_app
219 ``` 227 ```
220 228
221 3. Optional: Run Mojo Shell with an HTTP server 229 3. Optional: Run Mojo Shell with an HTTP server
222 ``` 230 ```
223 cd out/Debug 231 cd out/Debug
224 python -m SimpleHTTPServer 4444 & 232 python -m SimpleHTTPServer 4444 &
225 ./mojo_shell --origin=http://127.0.0.1:4444 --disable-cache mojo:sample_app 233 ./mojo_shell --origin=http://127.0.0.1:4444 --disable-cache mojo:sample_app
226 ``` 234 ```
OLDNEW
« no previous file with comments | « BUILD.gn ('k') | mojo/public/dart/rules.gni » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698