OLD | NEW |
| (Empty) |
1 #!/bin/bash | |
2 | |
3 # this script runs as root inside the chroot environment and updates the depot t
ools, go environment, | |
4 # and skia source. | |
5 | |
6 # need to mount /dev/shm first so that python will execute properly. | |
7 | |
8 mount /dev/shm | |
9 | |
10 SKIA_BUILD=/skia_build | |
11 cd ${SKIA_BUILD} | |
12 | |
13 # Install depot_tools. | |
14 if [ -d depot_tools ]; then | |
15 (cd depot_tools && git pull); | |
16 else | |
17 git clone https://chromium.googlesource.com/chromium/tools/depot_tools.git; | |
18 fi | |
19 export PATH=$PATH:${SKIA_BUILD}/depot_tools | |
20 | |
21 # Sometimes you need to test patches on the server, to do that uncomment | |
22 # the following commented out lines and update the PATCH env variable to the | |
23 # name of the codereview to use. | |
24 | |
25 # rm -rf skia | |
26 | |
27 # Checkout the skia code and dependencies. | |
28 mkdir skia | |
29 cd skia | |
30 gclient config --name . https://skia.googlesource.com/skia.git | |
31 gclient sync | |
32 git checkout master | |
33 | |
34 # PATCH=issue196723021_100001.diff | |
35 # rm $PATCH | |
36 # wget https://codereview.chromium.org/download/$PATCH | |
37 # git apply $PATCH | |
38 | |
39 SKIA_GYP_OUTPUT_DIR=${SKIA_BUILD}/skia/out GYP_GENERATORS=ninja ./gyp_skia -Dski
a_mesa=1 | |
40 | |
41 ninja -C ${SKIA_BUILD}/skia/out/Release skia_lib libjpeg libSkKTX libetc1 flags
sk_tool_utils resources | |
OLD | NEW |