blob: dde7f19e30c51a153996d1d3763fc598d6fa54c1 [file] [log] [blame]
Kevin Lubick8e9750d2018-10-09 09:36:35 -04001#!/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
Kevin Lubickfa5a1382019-10-09 10:46:14 -04007# This assumes it is being run inside a docker container of emsdk-base
Kevin Lubick8e9750d2018-10-09 09:36:35 -04008# and a Skia checkout has been mounted at /SRC and the output directory
9# is mounted at /OUT
10
Kevin Lubick8e9750d2018-10-09 09:36:35 -040011set +e
12set -x
13# Clean out previous builds (ignoring any errors for things like folders)
14# (e.g. we don't want to delete /OUT/depot_tools/)
15rm -f /OUT/*
16set -e
17
18#BASE_DIR is the dir this script is in ($SKIA_ROOT/infra/canvaskit)
19BASE_DIR=`cd $(dirname ${BASH_SOURCE[0]}) && pwd`
Kevin Lubick3f67f412019-03-11 16:11:58 -040020CANVASKIT_DIR=$BASE_DIR/../../modules/canvaskit
Kevin Lubick8e9750d2018-10-09 09:36:35 -040021
22BUILD_DIR=/OUT $CANVASKIT_DIR/compile.sh $@
Kevin Lubicke70c6b12018-11-06 07:49:40 -050023