xref: /aosp_15_r20/external/skia/site/docs/user/download.md (revision c8dee2aa9b3f27cf6c858bd81872bdeb2c07ed17)
1---
2title: 'How to download Skia'
3linkTitle: 'Download'
4
5weight: 10
6menu:
7  main:
8    weight: 50
9---
10
11## Install `depot_tools` and Git
12
13Follow the instructions on [Installing Chromium's
14depot_tools](http://www.chromium.org/developers/how-tos/install-depot-tools)
15to download `depot_tools` (which includes gclient, git-cl, and Ninja).
16Below 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
24already.
25
26### Install `bazelisk`
27If you intend to add or remove files, or change #includes, you will need to use Bazel to
28regenerate parts of the BUILD.bazel files. Instead of installing Bazel manually, we recommend
29you install [Bazelisk](https://github.com/bazelbuild/bazelisk#installation), which will fetch the
30appropriate version of [Bazel](https://bazel.build/) for you (as specified by //.bazelversion).
31
32### Install `ninja`
33Ninja can be supplied using `gclient` or with `bin/fetch-ninja`.
34
35## Clone the Skia repository
36
37Skia can either be cloned using `git` or the `fetch` tool that is
38installed with `depot_tools`.
39
40<!--?prettify lang=sh?-->
41
42    git clone https://skia.googlesource.com/skia.git
43    # or
44    # fetch skia
45    cd skia
46    python3 tools/git-sync-deps
47    python3 bin/fetch-ninja
48
49## Getting started with Skia
50
51You will probably now want to [build](../build) Skia.
52
53## Changing and contributing to Skia
54
55At this point, you have everything you need to build and use Skia! If
56you want to make changes, and possibly contribute them back to the Skia
57project, read [How To Submit a Patch](/docs/dev/contrib/submit/).
58