OLD | NEW |
1 How to download Skia | 1 How to download Skia |
2 ==================== | 2 ==================== |
3 | 3 |
4 Install depot_tools and Git | 4 Install depot_tools and Git |
5 --------------------------- | 5 --------------------------- |
6 | 6 |
7 Follow the instructions on [Installing Chromium's | 7 Follow the instructions on [Installing Chromium's |
8 depot_tools](http://www.chromium.org/developers/how-tos/install-depot-tools) | 8 depot_tools](http://www.chromium.org/developers/how-tos/install-depot-tools) |
9 to download depot_tools (which includes gclient, git-cl, and Ninja). | 9 to download depot_tools (which includes gclient, git-cl, and Ninja). |
10 | 10 |
11 <!--?prettify lang=sh?--> | 11 <!--?prettify lang=sh?--> |
12 | 12 |
13 git clone 'https://chromium.googlesource.com/chromium/tools/depot_tools.git' | 13 git clone 'https://chromium.googlesource.com/chromium/tools/depot_tools.git' |
14 export PATH="${PWD}/depot_tools:${PATH}" | 14 export PATH="${PWD}/depot_tools:${PATH}" |
15 | 15 |
16 depot_tools will also install Git on your system, if it wasn't installed | 16 depot_tools will also install Git on your system, if it wasn't installed |
17 already. | 17 already. |
18 | 18 |
19 | |
20 Configure Git | |
21 ------------- | |
22 | |
23 <!--?prettify lang=sh?--> | |
24 | |
25 git config --global user.name "Your Name" | |
26 git config --global user.email you@example.com | |
27 | |
28 Clone the Skia repository | 19 Clone the Skia repository |
29 ------------------------- | 20 ------------------------- |
30 | 21 |
31 <!--?prettify lang=sh?--> | 22 <!--?prettify lang=sh?--> |
32 | 23 |
33 git clone https://skia.googlesource.com/skia.git | 24 git clone https://skia.googlesource.com/skia.git |
34 cd skia | 25 cd skia |
35 | 26 |
36 Get Skia's dependencies and generate Ninja build files | 27 Get Skia's dependencies and generate Ninja build files |
37 ------------------------------------------------------ | 28 ------------------------------------------------------ |
38 | 29 |
39 <!--?prettify lang=sh?--> | 30 <!--?prettify lang=sh?--> |
40 | 31 |
41 python bin/sync-and-gyp | 32 python bin/sync-and-gyp |
42 | 33 |
43 <!-- | |
44 python tools/git-sync-deps | |
45 python ./gyp_skia | |
46 --> | |
47 | |
48 Compile all default targets | 34 Compile all default targets |
49 --------------------------- | 35 --------------------------- |
50 | 36 |
51 <!--?prettify lang=sh?--> | 37 <!--?prettify lang=sh?--> |
52 | 38 |
53 ninja -C out/Debug | 39 ninja -C out/Debug |
54 | 40 |
55 Execute Skia tests | 41 Execute Skia tests |
56 ------------------ | 42 ------------------ |
57 | 43 |
58 [More about Skia correctness testing tools](../dev/testing/testing) | 44 [More about Skia correctness testing tools](../dev/testing/testing) |
59 | 45 |
60 <!--?prettify lang=sh?--> | 46 <!--?prettify lang=sh?--> |
61 | 47 |
62 out/Debug/dm | 48 out/Debug/dm |
63 | 49 |
64 Execute Skia sample application | 50 Execute Skia sample application |
65 ------------------------------- | 51 ------------------------------- |
66 | 52 |
67 [More about Skia's SampleApp](sample/sampleapp) | 53 [More about Skia's SampleApp](sample/sampleapp) |
68 | 54 |
69 <!--?prettify lang=sh?--> | 55 <!--?prettify lang=sh?--> |
70 | 56 |
71 out/Debug/SampleApp | 57 out/Debug/SampleApp |
72 | 58 |
73 At this point, you have everything you need to build and use Skia! If | 59 At this point, you have everything you need to build and use Skia! If |
74 you want to make changes, and possibly contribute them back to the Skia | 60 you want to make changes, and possibly contribute them back to the Skia |
75 project, read [How To Submit a Patch](../dev/contrib/submit). | 61 project, read [How To Submit a Patch](../dev/contrib/submit). |
OLD | NEW |