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 umount /dev/shm |
| 7 mount /dev/shm |
| 8 |
| 9 SKIA_BUILD=/skia_build |
| 10 cd ${SKIA_BUILD} |
| 11 |
| 12 # Install depot_tools. |
| 13 if [ -d depot_tools ]; then |
| 14 (cd depot_tools && git pull); |
| 15 else |
| 16 git clone https://chromium.googlesource.com/chromium/tools/depot_tools.git; |
| 17 fi |
| 18 export PATH=$PATH:${SKIA_BUILD}/depot_tools |
| 19 |
| 20 # Sometimes you need to test patches on the server, to do that uncomment |
| 21 # the following commented out lines and update the PATCH env variable to the |
| 22 # name of the codereview to use. |
| 23 |
| 24 # rm -rf skia |
| 25 |
| 26 # Checkout the skia code and dependencies. |
| 27 mkdir skia |
| 28 cd skia |
| 29 gclient config --name . https://skia.googlesource.com/skia.git |
| 30 gclient sync |
| 31 git checkout master |
| 32 |
| 33 # PATCH=issue196723021_100001.diff |
| 34 # rm $PATCH |
| 35 # wget https://codereview.chromium.org/download/$PATCH |
| 36 # git apply $PATCH |
| 37 |
| 38 SKIA_GYP_OUTPUT_DIR=${SKIA_BUILD}/skia/out GYP_GENERATORS=ninja ./gyp_skia -Dski
a_gpu=0 |
| 39 |
| 40 ninja -C ${SKIA_BUILD}/skia/out/Release skia_lib |
| 41 |
OLD | NEW |