OLD | NEW |
1 # Checking out and building Chromium for Android | 1 # Checking out and building Chromium for Android |
2 | 2 |
3 There are instructions for other platforms linked from the | 3 There are instructions for other platforms linked from the |
4 [get the code](get_the_code.md) page. | 4 [get the code](get_the_code.md) page. |
5 | 5 |
6 ## Instructions for Google Employees | 6 ## Instructions for Google Employees |
7 | 7 |
8 Are you a Google employee? See | 8 Are you a Google employee? See |
9 [go/building-chrome](https://goto.google.com/building-chrome) instead. | 9 [go/building-chrome](https://goto.google.com/building-chrome) instead. |
10 | 10 |
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
127 | 127 |
128 ## Setting up the build | 128 ## Setting up the build |
129 | 129 |
130 Chromium uses [Ninja](https://ninja-build.org) as its main build tool along | 130 Chromium uses [Ninja](https://ninja-build.org) as its main build tool along |
131 with a tool called [GN](../tools/gn/docs/quick_start.md) to generate `.ninja` | 131 with a tool called [GN](../tools/gn/docs/quick_start.md) to generate `.ninja` |
132 files. You can create any number of *build directories* with different | 132 files. You can create any number of *build directories* with different |
133 configurations. To create a build directory which builds Chrome for Android, | 133 configurations. To create a build directory which builds Chrome for Android, |
134 run: | 134 run: |
135 | 135 |
136 ```shell | 136 ```shell |
137 $ gn gen '--args="target_os="android"' out/Default | 137 $ gn gen --args='target_os="android"' out/Default |
138 ``` | 138 ``` |
139 | 139 |
140 * You only have to run this once for each new build directory, Ninja will | 140 * You only have to run this once for each new build directory, Ninja will |
141 update the build files as needed. | 141 update the build files as needed. |
142 * You can replace `Default` with another name, but | 142 * You can replace `Default` with another name, but |
143 it should be a subdirectory of `out`. | 143 it should be a subdirectory of `out`. |
144 * For other build arguments, including release settings, see [GN build | 144 * For other build arguments, including release settings, see [GN build |
145 configuration](https://www.chromium.org/developers/gn-build-configuration). | 145 configuration](https://www.chromium.org/developers/gn-build-configuration). |
146 The default will be a debug component build matching the current host | 146 The default will be a debug component build matching the current host |
147 operating system and CPU. | 147 operating system and CPU. |
(...skipping 228 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
376 release of Chrome for Android (v25+) you can do the following steps. | 376 release of Chrome for Android (v25+) you can do the following steps. |
377 Note that in order to get your changes into the official release, you'll | 377 Note that in order to get your changes into the official release, you'll |
378 need to send your change for a codereview using the regular process for | 378 need to send your change for a codereview using the regular process for |
379 committing code to chromium. | 379 committing code to chromium. |
380 | 380 |
381 1. Open Chrome on your Android device and visit chrome://version | 381 1. Open Chrome on your Android device and visit chrome://version |
382 2. Copy down the id listed next to "Build ID:" | 382 2. Copy down the id listed next to "Build ID:" |
383 3. Go to | 383 3. Go to |
384 [http://storage.googleapis.com/chrome-browser-components/BUILD\_ID\_FROM\_ST
EP\_2/index.html](http://storage.googleapis.com/chrome-browser-components/BUILD_
ID_FROM_STEP_2/index.html) | 384 [http://storage.googleapis.com/chrome-browser-components/BUILD\_ID\_FROM\_ST
EP\_2/index.html](http://storage.googleapis.com/chrome-browser-components/BUILD_
ID_FROM_STEP_2/index.html) |
385 4. Download the listed files and follow the steps in the README. | 385 4. Download the listed files and follow the steps in the README. |
OLD | NEW |