skia2/site/user/download.md
halcanary 3a210bfd40 Documentation - Remove references to gclient sync
skia.org/user/download
-   Move sections "Making changes" and "Uploading changes for review"
    to "How to submit a patch" page
-   Mention bin/sync-and-gyp

skia.org/dev/contrib/submit
-   Mention branch.autosetuprebase=always to fit with Skia's linear
    history style.

NOTRY=true
DOCS_PREVIEW= https://skia.org/user/download?cl=1411403010
DOCS_PREVIEW= https://skia.org/dev/contrib/submit?cl=1411403010

Review URL: https://codereview.chromium.org/1411403010
2015-11-09 11:47:09 -08:00

1.7 KiB

How to download Skia

Install depot_tools and Git

Follow the instructions on Installing Chromium's depot_tools to download depot_tools (which includes gclient, git-cl, and Ninja).

git clone 'https://chromium.googlesource.com/chromium/tools/depot_tools.git'
export PATH="${PWD}/depot_tools:${PATH}"

depot_tools will also install Git on your system, if it wasn't installed already.

Configure Git

git config --global user.name "Your Name"
git config --global user.email you@example.com

Clone the Skia repository

git clone https://skia.googlesource.com/skia.git
cd skia

Get Skia's dependencies and generate Ninja build files

python bin/sync-and-gyp

Compile all default targets

ninja -C out/Debug

Execute Skia tests

More about Skia correctness testing tools

out/Debug/dm

Execute Skia sample application

More about Skia's SampleApp

out/Debug/SampleApp

At this point, you have everything you need to build and use Skia! If you want to make changes, and possibly contribute them back to the Skia project, read How To Submit a Patch.