| OLD | NEW |
| 1 Mojo | 1 Mojo |
| 2 ==== | 2 ==== |
| 3 | 3 |
| 4 This repo uses gclient to manage dependencies, so to build things from this | 4 This repo uses gclient to manage dependencies, so to build things from this |
| 5 repo you have to first download depot_tools and make sure it is in your path | 5 repo you have to first download depot_tools and make sure it is in your path |
| 6 | 6 |
| 7 http://www.chromium.org/developers/how-tos/install-depot-tools | 7 http://www.chromium.org/developers/how-tos/install-depot-tools |
| 8 | 8 |
| 9 then create a file called '.gclient' that has the following contents: | 9 then create a file called '.gclient' that has the following contents: |
| 10 | 10 |
| 11 ``` | 11 ``` |
| 12 solutions = [ | 12 solutions = [ |
| 13 { "name" : "src", | 13 { "name" : "src", |
| 14 "url" : "https://github.com/domokit/mojo.git", | 14 "url" : "https://github.com/domokit/mojo.git", |
| 15 "deps_file" : "DEPS", | 15 "deps_file" : "DEPS", |
| 16 "managed" : False, | 16 "managed" : False, |
| 17 "safesync_url": "", | 17 "safesync_url": "", |
| 18 }, | 18 }, |
| 19 ] | 19 ] |
| 20 # Include the following line only if you're interested in building for android. | 20 # Include the following line only if you're interested in building for android. |
| 21 target_os = ['android'] | 21 target_os = ['android'] |
| 22 ``` | 22 ``` |
| 23 | 23 |
| 24 Then run 'gclient sync' from the directory containing the .gclient file. | 24 Then run 'gclient sync' from the directory containing the .gclient file. |
| 25 This will clone this repository into a subdirectory called 'src'. From that | 25 This will clone this repository into a subdirectory called 'src'. From that |
| 26 directory, you can then build by running: | 26 directory, you can then ensure you have all the dependencies installed by |
| 27 running: |
| 28 |
| 29 ``` |
| 30 $ ./build/install-build-deps.sh |
| 31 ``` |
| 32 |
| 33 You can then build by running: |
| 27 | 34 |
| 28 ``` | 35 ``` |
| 29 $ gn gen out/Debug | 36 $ gn gen out/Debug |
| 30 $ ninja -C out/Debug mojo | 37 $ ninja -C out/Debug mojo |
| 31 ``` | 38 ``` |
| OLD | NEW |