This guide assumes you've got gclient
, git
, and ninja
on your path.
mkdir skia
cd skia
gclient config --name . https://skia.googlesource.com/skia.git
gclient sync
.gyp
file.GYP_GENERATORS=ninja ./gyp_skia
ninja -C out/Debug
: no optimization, asserts enabledninja -C out/Release
: optimization, asserts disabledninja -C out/Coverage
: no optimization, asserts enabled, code coverage generatedout/Debug/tests
: runs unit tests from tests/out/Debug/dm
: runs golden master tests from gm/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
git pull --rebase
ninja -C out/Debug && out/Debug/tests && out/Debug/dm && echo ok
git cl upload -r my-skia-reviewer@google.com -s
git cl web