OLD | NEW |
1 # Mac Build Instructions | 1 # Mac Build Instructions |
2 | 2 |
3 [TOC] | 3 [TOC] |
4 | 4 |
5 ## Prerequisites | 5 ## Prerequisites |
6 | 6 |
7 * A Mac running 10.9+. | 7 * A Mac running 10.9+. |
8 * https://developer.apple.com/xcode, 5+ | 8 * https://developer.apple.com/xcode, 5+ |
9 * Install | 9 * Install |
10 [gclient](http://dev.chromium.org/developers/how-tos/install-depot-tools), | 10 [gclient](http://dev.chromium.org/developers/how-tos/install-depot-tools), |
11 part of the | 11 part of the |
12 [depot_tools](http://dev.chromium.org/developers/how-tos/depottools) package | 12 [depot_tools](http://dev.chromium.org/developers/how-tos/depottools) package |
13 ([download](http://dev.chromium.org/developers/how-tos/install-depot-tools))
. | 13 ([download](http://dev.chromium.org/developers/how-tos/install-depot-tools))
. |
14 gclient is a wrapper around svn that we use to manage our working copies. | 14 gclient is a wrapper around svn that we use to manage our working copies. |
15 * Install Xcode's "Command Line Tools" via Xcode menu -> Preferences -> | 15 * Install Xcode's "Command Line Tools" via Xcode menu -> Preferences -> |
16 Downloads | 16 Downloads |
17 * The OSX 10.10 SDK. Run | 17 * The OSX 10.10 SDK. Run |
18 ```sh | 18 ```sh |
19 ls `xcode-select -p`/Platforms/MacOSX.platform/Developer/SDKs | 19 ls `xcode-select -p`/Platforms/MacOSX.platform/Developer/SDKs |
20 ``` | 20 ``` |
21 to check whether you have it. If you don't have it, you need to get one from | 21 to check whether you have it. If you don't have it, you need to get one from |
22 an install of Xcode 6, and place it in the above directory. | 22 an install of Xcode 6, and place it in the above directory. |
23 | 23 |
24 ## Getting the code | 24 ## Getting the code |
25 | 25 |
26 [Check out the source code](http://dev.chromium.org/developers/how-tos/get-the-c
ode) | 26 [Check out the source code](http://dev.chromium.org/developers/how-tos/get-the-c
ode) |
27 using Git. If you're new to the project, you can skip all the information about | 27 using Git. |
28 git-svn, since you will not be committing directly to the repository. | |
29 | 28 |
30 Before checking out, go to the | 29 Before checking out, go to the |
31 [waterfall](http://build.chromium.org/buildbot/waterfall/) and check that the | 30 [waterfall](http://build.chromium.org/buildbot/waterfall/) and check that the |
32 source tree is open (to avoid pulling a broken tree). | 31 source tree is open (to avoid pulling a broken tree). |
33 | 32 |
34 The path to the build directory should not contain spaces (e.g. not | 33 The path to the build directory should not contain spaces (e.g. not |
35 `~/Mac OS X/chromium`), as this will cause the build to fail. This includes your | 34 `~/Mac OS X/chromium`), as this will cause the build to fail. This includes your |
36 drive name, the default "Macintosh HD2" for a second drive has a space. | 35 drive name, the default "Macintosh HD2" for a second drive has a space. |
37 | 36 |
38 ## Building | 37 ## Building |
(...skipping 188 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
227 be set in `/etc/sysctl.conf`: | 226 be set in `/etc/sysctl.conf`: |
228 | 227 |
229 echo kern.maxvnodes=$((512*1024)) | sudo tee -a /etc/sysctl.conf | 228 echo kern.maxvnodes=$((512*1024)) | sudo tee -a /etc/sysctl.conf |
230 | 229 |
231 Or edit the file directly. | 230 Or edit the file directly. |
232 | 231 |
233 If your `git --version` reports 2.6 or higher, the following may also improve | 232 If your `git --version` reports 2.6 or higher, the following may also improve |
234 performance of `git status`: | 233 performance of `git status`: |
235 | 234 |
236 git update-index --untracked-cache | 235 git update-index --untracked-cache |
OLD | NEW |