71e800a6f8
Makes use of our current DEPS file to allow for a smooth transition. BUG=skia:291 NOTRY=true R=borenet@google.com, tfarina@chromium.org, epoger@google.com, mtklein@google.com Author: halcanary@google.com Review URL: https://codereview.chromium.org/191133005 git-svn-id: http://skia.googlecode.com/svn/trunk@14227 2bbb7eff-a529-9590-31e7-b0007b416f81
1.5 KiB
1.5 KiB
Skia Quickstart Guide
This guide assumes you've got git
, ninja
, and python
on your path.
- First, checkout Skia:
git clone https://skia.googlesource.com/skia.git
cd skia
- Then download the dependencies. You only need to rerun this when
the dependencies change.
python tools/git-sync-deps
- Create our Ninja build files from our Gyp meta-build files. You only need
to rerun this when you sync or change a
.gyp
file.GYP_GENERATORS=ninja ./gyp_skia
- Now, let's build Skia. There are a few options:
ninja -C out/Debug
: no optimization, asserts enabledninja -C out/Release
: optimization, asserts disabledninja -C out/Coverage
: no optimization, asserts enabled, code coverage generated
- Run some tests:
out/Debug/tests
: runs unit tests from tests/out/Debug/dm
: runs golden master tests from gm/
- Make some changes:
git checkout -b my-new-feature origin/master
vim src/...
git commit -am "Changes for my new feature."
vim tests/...
git commit --amend -a
ninja -C out/Debug && out/Debug/tests && out/Debug/dm && echo ok
- Rebase your change onto the latest Skia code:
git pull --rebase
ninja -C out/Debug && out/Debug/tests && out/Debug/dm && echo ok
- Upload your change and send it out for review:
git cl upload -r my-skia-reviewer@google.com -s
git cl web
- Go through code review, get an LGTM, submit using the checkbox on the code review page.