OLD | NEW |
1 # Checking out and building Chromium on Linux | 1 # Checking out and building Chromium on Linux |
2 | 2 |
| 3 There are instructions for other platforms linked from the |
| 4 [get the code](get_the_code.md) page. |
| 5 |
3 **See also [the old version of this page](old_linux_build_instructions.md).** | 6 **See also [the old version of this page](old_linux_build_instructions.md).** |
4 | 7 |
5 Google employee? See [go/building-chrome](https://goto.google.com/building-chrom
e) instead. | 8 ## Instructions for Google Employees |
| 9 |
| 10 Are you a Google employee? See |
| 11 [go/building-chrome](https://goto.google.com/building-chrome) instead. |
6 | 12 |
7 [TOC] | 13 [TOC] |
8 | 14 |
9 ## System requirements | 15 ## System requirements |
10 | 16 |
11 * A 64-bit Intel machine with at least 8GB of RAM. More than 16GB is highly | 17 * A 64-bit Intel machine with at least 8GB of RAM. More than 16GB is highly |
12 recommended. | 18 recommended. |
13 * At least 100GB of free disk space. | 19 * At least 100GB of free disk space. |
14 * You must have Git and Python installed already. | 20 * You must have Git and Python installed already. |
15 | 21 |
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
90 | 96 |
91 ```shell | 97 ```shell |
92 $ gclient runhooks | 98 $ gclient runhooks |
93 ``` | 99 ``` |
94 | 100 |
95 *Optional*: You can also [install API | 101 *Optional*: You can also [install API |
96 keys](https://www.chromium.org/developers/how-tos/api-keys) if you want your | 102 keys](https://www.chromium.org/developers/how-tos/api-keys) if you want your |
97 build to talk to some Google services, but this is not necessary for most | 103 build to talk to some Google services, but this is not necessary for most |
98 development and testing purposes. | 104 development and testing purposes. |
99 | 105 |
100 ## Setting up the Build | 106 ## Setting up the build |
101 | 107 |
102 Chromium uses [Ninja](https://ninja-build.org) as its main build tool along | 108 Chromium uses [Ninja](https://ninja-build.org) as its main build tool along |
103 with a tool called [GN](../tools/gn/docs/quick_start.md) to generate `.ninja` | 109 with a tool called [GN](../tools/gn/docs/quick_start.md) to generate `.ninja` |
104 files. You can create any number of *build directories* with different | 110 files. You can create any number of *build directories* with different |
105 configurations. To create a build directory, run: | 111 configurations. To create a build directory, run: |
106 | 112 |
107 ```shell | 113 ```shell |
108 $ gn gen out/Default | 114 $ gn gen out/Default |
109 ``` | 115 ``` |
110 | 116 |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
144 ```shell | 150 ```shell |
145 $ out/Default/chrome | 151 $ out/Default/chrome |
146 ``` | 152 ``` |
147 | 153 |
148 ## Running test targets | 154 ## Running test targets |
149 | 155 |
150 You can run the tests in the same way. You can also limit which tests are | 156 You can run the tests in the same way. You can also limit which tests are |
151 run using the `--gtest_filter` arg, e.g.: | 157 run using the `--gtest_filter` arg, e.g.: |
152 | 158 |
153 ```shell | 159 ```shell |
154 $ ninja -C out/Default unit_tests --gtest_filter="PushClientTest.*" | 160 $ out/Default/unit_tests --gtest_filter="PushClientTest.*" |
155 ``` | 161 ``` |
156 | 162 |
157 You can find out more about GoogleTest at its | 163 You can find out more about GoogleTest at its |
158 [GitHub page](https://github.com/google/googletest). | 164 [GitHub page](https://github.com/google/googletest). |
159 | 165 |
160 ## Update your checkout | 166 ## Update your checkout |
161 | 167 |
162 To update an existing checkout, you can run | 168 To update an existing checkout, you can run |
163 | 169 |
164 ```shell | 170 ```shell |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
211 * Want to use Eclipse as your IDE? See | 217 * Want to use Eclipse as your IDE? See |
212 [LinuxEclipseDev](linux_eclipse_dev.md). | 218 [LinuxEclipseDev](linux_eclipse_dev.md). |
213 * Want to use your built version as your default browser? See | 219 * Want to use your built version as your default browser? See |
214 [LinuxDevBuildAsDefaultBrowser](linux_dev_build_as_default_browser.md). | 220 [LinuxDevBuildAsDefaultBrowser](linux_dev_build_as_default_browser.md). |
215 | 221 |
216 ### Next Steps | 222 ### Next Steps |
217 | 223 |
218 If you want to contribute to the effort toward a Chromium-based browser for | 224 If you want to contribute to the effort toward a Chromium-based browser for |
219 Linux, please check out the [Linux Development page](linux_development.md) for | 225 Linux, please check out the [Linux Development page](linux_development.md) for |
220 more information. | 226 more information. |
OLD | NEW |