Kevin Lubick | 8e9750d | 2018-10-09 09:36:35 -0400 | [diff] [blame] | 1 | #!/bin/bash |
| 2 | # Copyright 2018 Google LLC |
| 3 | # |
| 4 | # Use of this source code is governed by a BSD-style license that can be |
| 5 | # found in the LICENSE file. |
| 6 | |
| 7 | # This assumes it is being run inside a docker container of emsdk-base |
| 8 | # and a Skia checkout has been mounted at /SRC and the output directory |
| 9 | # is mounted at /OUT |
| 10 | |
| 11 | # For example: |
Kevin Lubick | e70c6b1 | 2018-11-06 07:49:40 -0500 | [diff] [blame] | 12 | # docker run -v $SKIA_ROOT:/SRC -v $SKIA_ROOT/out/canvaskit:/OUT gcr.io/skia-public/emsdk-release:1.38.16_v1 /SRC/infra/canvaskit/build_canvaskit.sh |
Kevin Lubick | 8e9750d | 2018-10-09 09:36:35 -0400 | [diff] [blame] | 13 | |
| 14 | set +e |
| 15 | set -x |
| 16 | # Clean out previous builds (ignoring any errors for things like folders) |
| 17 | # (e.g. we don't want to delete /OUT/depot_tools/) |
| 18 | rm -f /OUT/* |
| 19 | set -e |
| 20 | |
| 21 | #BASE_DIR is the dir this script is in ($SKIA_ROOT/infra/canvaskit) |
| 22 | BASE_DIR=`cd $(dirname ${BASH_SOURCE[0]}) && pwd` |
| 23 | CANVASKIT_DIR=$BASE_DIR/../../experimental/canvaskit |
| 24 | |
| 25 | BUILD_DIR=/OUT $CANVASKIT_DIR/compile.sh $@ |
Kevin Lubick | e70c6b1 | 2018-11-06 07:49:40 -0500 | [diff] [blame] | 26 | |