Joe Gregorio | 02f7202 | 2021-03-27 10:12:45 -0400 | [diff] [blame] | 1 | --- |
| 2 | title: 'How to download Skia' |
| 3 | linkTitle: 'Download' |
| 4 | |
| 5 | weight: 10 |
| 6 | menu: |
| 7 | main: |
| 8 | weight: 50 |
| 9 | --- |
| 10 | |
| 11 | ## Install `depot_tools` and Git |
| 12 | |
| 13 | Follow the instructions on [Installing Chromium's |
| 14 | depot_tools](http://www.chromium.org/developers/how-tos/install-depot-tools) |
| 15 | to download `depot_tools` (which includes gclient, git-cl, and Ninja). |
| 16 | Below is a summary of the necessary steps. |
| 17 | |
| 18 | <!--?prettify lang=sh?--> |
| 19 | |
| 20 | git clone 'https://chromium.googlesource.com/chromium/tools/depot_tools.git' |
| 21 | export PATH="${PWD}/depot_tools:${PATH}" |
| 22 | |
| 23 | `depot_tools` will also install Git on your system, if it wasn't installed |
| 24 | already. |
| 25 | |
| 26 | ## Clone the Skia repository |
| 27 | |
| 28 | Skia can either be cloned using `git` or the `fetch` tool that is |
| 29 | installed with `depot_tools`. |
| 30 | |
| 31 | <!--?prettify lang=sh?--> |
| 32 | |
| 33 | git clone https://skia.googlesource.com/skia.git |
| 34 | # or |
| 35 | # fetch skia |
| 36 | cd skia |
| 37 | python2 tools/git-sync-deps |
| 38 | |
| 39 | ## Getting started with Skia |
| 40 | |
Joe Gregorio | e296c56 | 2021-04-05 11:39:40 -0400 | [diff] [blame] | 41 | You will probably now want to [build](../build) Skia. |
Joe Gregorio | 02f7202 | 2021-03-27 10:12:45 -0400 | [diff] [blame] | 42 | |
| 43 | ## Changing and contributing to Skia |
| 44 | |
| 45 | At this point, you have everything you need to build and use Skia! If |
| 46 | you want to make changes, and possibly contribute them back to the Skia |
Joe Gregorio | e296c56 | 2021-04-05 11:39:40 -0400 | [diff] [blame] | 47 | project, read [How To Submit a Patch](/docs/dev/contrib/submit/). |