8e9750d3c5
Building CanvasKit uses very similar logic to PathKit, so there was a fair amount of copy/paste/customize. Fixes the name of skia.js/wasm -> canvaskit.js/wasm and adds a package.json to formally track versions. Also move PathKit helper scripts to align better. Docs-Preview: https://skia.org/?cl=160463 Bug: skia: Change-Id: Ie75b30592dcc4d520dca41f6f5579006aaa8849b Reviewed-on: https://skia-review.googlesource.com/c/160463 Reviewed-by: Eric Boren <borenet@google.com>
26 lines
851 B
Bash
Executable File
26 lines
851 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/canvaskit:/OUT gcr.io/skia-public/emsdk-release:1.38.6_jre /SRC/infra/canvaskit/build_canvaskit.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/canvaskit)
|
|
BASE_DIR=`cd $(dirname ${BASH_SOURCE[0]}) && pwd`
|
|
CANVASKIT_DIR=$BASE_DIR/../../experimental/canvaskit
|
|
|
|
BUILD_DIR=/OUT $CANVASKIT_DIR/compile.sh $@
|