2 # Copyright 2020 Google LLC
4 # Use of this source code is governed by a BSD-style license that can be
5 # found in the LICENSE file.
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
13 # Clean out previous builds (ignoring any errors for things like folders)
14 # (e.g. we don't want to delete /OUT/depot_tools/)
18 # BASE_DIR is the dir this script is in ($SKIA_ROOT/infra/canvaskit)
19 BASE_DIR=`cd $(dirname ${BASH_SOURCE[0]}) && pwd`
20 CANVASKIT_DIR=$BASE_DIR/../../modules/canvaskit
22 BUILD_DIR=/OUT $CANVASKIT_DIR/compile_gm.sh $@
24 # Make sure everybody can read and write the contents of /OUT