OLD | NEW |
---|---|
1 How to download Skia | 1 How to download Skia |
2 ==================== | 2 ==================== |
3 | 3 |
4 Install gclient and git | 4 Install Depot Tools and Git |
hcm
2015/11/09 18:23:56
Depot Tools --> depot_tools (even though it doesn'
hal.canary
2015/11/09 19:45:50
done
| |
5 ----------------------- | 5 --------------------------- |
6 | 6 |
7 Follow the instructions on | 7 Follow the instructions on [Installing Depot |
8 http://www.chromium.org/developers/how-tos/install-depot-tools to download | 8 Tools](http://www.chromium.org/developers/how-tos/install-depot-tools) |
9 chromium's depot_tools (which includes gclient ). | 9 to download Chromium's Depot Tools (which includes gclient, git-cl, |
10 and Ninja). | |
10 | 11 |
11 depot_tools will also install git on your system, if it wasn't installed | 12 <!--?prettify lang=sh?--> |
13 | |
14 git clone 'https://chromium.googlesource.com/chromium/tools/depot_tools.git' | |
15 export PATH="${PWD}/depot_tools:${PATH}" | |
16 | |
17 Depot Tools will also install git on your system, if it wasn't installed | |
12 already. | 18 already. |
13 | 19 |
14 | 20 |
15 | |
16 Configure git | 21 Configure git |
hcm
2015/11/09 18:23:55
git --> Git to be consistent with above
hal.canary
2015/11/09 19:45:50
done
| |
17 ------------- | 22 ------------- |
18 | 23 |
24 <!--?prettify lang=sh?--> | |
25 | |
19 $ git config --global user.name "Your Name" | 26 $ git config --global user.name "Your Name" |
20 $ git config --global user.email you@example.com | 27 $ git config --global user.email you@example.com |
21 | 28 |
22 Download your tree | 29 Clone the Skia Repository |
hcm
2015/11/09 18:23:56
To be consistent with subheadings in related docs,
hal.canary
2015/11/09 19:45:50
done
| |
30 ------------------------- | |
31 | |
32 <!--?prettify lang=sh?--> | |
33 | |
34 $ git clone https://skia.googlesource.com/skia.git | |
35 $ cd skia | |
36 | |
37 Get Skia's dependencies and generate Ninja Build files | |
hcm
2015/11/09 18:23:56
lowercase b
hal.canary
2015/11/09 19:45:50
done
| |
38 ------------------------------------------------------ | |
39 | |
40 <!--?prettify lang=sh?--> | |
41 | |
42 $ python bin/sync-and-gyp | |
43 | |
44 <!-- | |
45 $ python tools/git-sync-deps | |
46 $ python ./gyp_skia | |
47 --> | |
48 | |
49 Compile all Default Targets | |
hcm
2015/11/09 18:23:55
lowercase d, t
hal.canary
2015/11/09 19:45:50
done
| |
50 --------------------------- | |
51 | |
52 <!--?prettify lang=sh?--> | |
53 | |
54 $ ninja -C out/Debug | |
55 | |
56 Execute Skia Tests | |
hcm
2015/11/09 18:23:55
lowercase t
hal.canary
2015/11/09 19:45:50
done
| |
23 ------------------ | 57 ------------------ |
24 | 58 |
25 $ mkdir skia | 59 [More about Skia correctnest testing tools](../dev/testing/testing) |
hcm
2015/11/09 18:23:55
correctness*
hal.canary
2015/11/09 19:45:50
done
| |
26 $ cd skia | 60 |
27 $ gclient config --name . --unmanaged https://skia.googlesource.com/skia.git | 61 <!--?prettify lang=sh?--> |
28 $ gclient sync | 62 |
29 $ git checkout master | 63 $ out/Debug/dm |
64 | |
65 Execute Skia Sample Application | |
hcm
2015/11/09 18:23:56
lowercase s, a
hal.canary
2015/11/09 19:45:50
done
| |
66 ------------------------------- | |
67 | |
68 [More about Skia's SampleApp](sample/sampleapp) | |
69 | |
70 <!--?prettify lang=sh?--> | |
71 | |
72 $ out/Debug/SampleApp | |
30 | 73 |
31 At this point, you have everything you need to build and use Skia! If | 74 At this point, you have everything you need to build and use Skia! If |
32 you want to make changes, and possibly contribute them back to the Skia | 75 you want to make changes, and possibly contribute them back to the Skia |
33 project, read on... | 76 project, read [How To Submit a Patch](../dev/contrib/submit). |
34 | |
35 Making changes | |
36 -------------- | |
37 | |
38 First create a branch for your changes: | |
39 | |
40 $ git checkout --track origin/master -b my_feature master | |
41 | |
42 After making your changes, create a commit | |
43 | |
44 $ git add [file1] [file2] ... | |
45 $ git commit | |
46 | |
47 If your branch gets out of date, you will need to update it: | |
48 | |
49 $ git pull --rebase | |
50 $ gclient sync | |
51 | |
52 Uploading changes for review | |
53 ---------------------------- | |
54 | |
55 $ git cl upload | |
56 | |
57 You may have to enter a Google Account username and password to authenticate | |
58 yourself to codereview.chromium.org. A free gmail account will do fine, or any | |
59 other type of Google account. It does not have to match the email address you | |
60 configured using git config --global user.email above, but it can. | |
61 | |
62 The command output should include a URL (similar to | |
63 https://codereview.chromium.org/111893004/ ) indicating where your changelist | |
64 can be reviewed. | |
65 | |
66 Once your change has received an LGTM ("looks good to me"), you can check the | |
67 "Commit" box on the codereview page and it will be committed on your behalf. | |
68 | |
69 Once your commit has gone in, you should delete the branch containing your | |
70 change: | |
71 | |
72 $ git checkout master | |
73 $ git branch -D my_feature | |
74 | |
OLD | NEW |