blob: cb4adb1a098bcc24e7da310b9579d092d5cd3887 [file] [log] [blame]
Kevin Lubick30cc00c2018-08-03 10:26:00 -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 Lubick85de1522019-04-09 15:23:37 -04007# This assumes it is being run inside a docker container of emsdk-release
Kevin Lubick30cc00c2018-08-03 10:26:00 -04008# and a Skia checkout has been mounted at /SRC and the output directory
9# is mounted at /OUT
10
11# For example:
Kevin Lubicke70c6b12018-11-06 07:49:40 -050012# docker run -v $SKIA_ROOT:/SRC -v $SKIA_ROOT/out/dockerpathkit:/OUT gcr.io/skia-public/emsdk-release:1.38.16_v1 /SRC/infra/pathkit/build_pathkit.sh
Kevin Lubick30cc00c2018-08-03 10:26:00 -040013
Kevin Lubick8e9750d2018-10-09 09:36:35 -040014set +e
15set -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/)
18rm -f /OUT/*
19set -e
20
21#BASE_DIR is the dir this script is in ($SKIA_ROOT/infra/pathkit)
Kevin Lubick30cc00c2018-08-03 10:26:00 -040022BASE_DIR=`cd $(dirname ${BASH_SOURCE[0]}) && pwd`
Kevin Lubick8e9750d2018-10-09 09:36:35 -040023PATHKIT_DIR=$BASE_DIR/../../modules/pathkit
Kevin Lubick49688432018-10-08 13:58:47 -040024
Kevin Lubicka0ba6122018-08-15 13:45:28 -040025BUILD_DIR=/OUT $PATHKIT_DIR/compile.sh $@
Kevin Lubicke70c6b12018-11-06 07:49:40 -050026