aboutsummaryrefslogtreecommitdiffhomepage
path: root/site/user/download.md
blob: 7c7630a3202b63c1d61d559f84f90ad57bacd054 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
How to download Skia
====================

Install gclient and git
-----------------------

Follow the instructions on
http://www.chromium.org/developers/how-tos/install-depot-tools to download
chromium's depot_tools (which includes gclient ).

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

Download your tree
------------------

    $ mkdir skia
    $ cd skia
    $ gclient config --name . --unmanaged https://skia.googlesource.com/skia.git
    $ gclient sync
    $ git checkout master

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 on...

Making changes
--------------

First create a branch for your changes:

    $ git checkout --track origin/master -b my_feature master

After making your changes, create a commit

    $ git add [file1] [file2] ...
    $ git commit

If your branch gets out of date, you will need to update it:

    $ git pull --rebase
    $ gclient sync

Uploading changes for review
----------------------------

    $ git cl upload

You may have to enter a Google Account username and password to authenticate
yourself to codereview.chromium.org. A free gmail account will do fine, or any
other type of Google account.  It does not have to match the email address you
configured using git config --global user.email above, but it can.

The command output should include a URL (similar to
https://codereview.chromium.org/111893004/ ) indicating where your changelist
can be reviewed.

Once your change has received an LGTM ("looks good to me"), you can check the
"Commit" box on the codereview page and it will be committed on your behalf.

Once your commit has gone in, you should delete the branch containing your
change:

    $ git checkout master
    $ git branch -D my_feature