f76da63fbd
Add workaround for https://github.com/emscripten-core/emscripten/issues/10072 Note to reviewer, please check out the steps I added in canvaskit/README.md to document this process. Bug: skia:9816 Change-Id: Idbe7ff08ac62f4f4d70e656384831b8d24c4a684 Reviewed-on: https://skia-review.googlesource.com/c/skia/+/266941 Reviewed-by: Eric Boren <borenet@google.com> Reviewed-by: Brian Salomon <bsalomon@google.com>
27 lines
835 B
Bash
Executable File
27 lines
835 B
Bash
Executable File
#!/bin/bash
|
|
# Copyright 2018 Google LLC
|
|
#
|
|
# Use of this source code is governed by a BSD-style license that can be
|
|
# found in the LICENSE file.
|
|
|
|
# This assumes it is being run inside a docker container of emsdk-base
|
|
# and a Skia checkout has been mounted at /SRC and the output directory
|
|
# is mounted at /OUT
|
|
|
|
# For example:
|
|
# docker run -v $SKIA_ROOT:/SRC -v $SKIA_ROOT/out/dockerpathkit:/OUT gcr.io/skia-public/emsdk-base:1.39.6_v1 /SRC/infra/pathkit/build_pathkit.sh
|
|
|
|
set +e
|
|
set -x
|
|
# Clean out previous builds (ignoring any errors for things like folders)
|
|
# (e.g. we don't want to delete /OUT/depot_tools/)
|
|
rm -f /OUT/*
|
|
set -e
|
|
|
|
#BASE_DIR is the dir this script is in ($SKIA_ROOT/infra/pathkit)
|
|
BASE_DIR=`cd $(dirname ${BASH_SOURCE[0]}) && pwd`
|
|
PATHKIT_DIR=$BASE_DIR/../../modules/pathkit
|
|
|
|
BUILD_DIR=/OUT $PATHKIT_DIR/compile.sh $@
|
|
|