157577b866
There was a break that was solved by adding -lGL to our link steps. I discovered a few extra flags to aid in debugging builds and I've left those in (they aren't too noisy IMO). This changes the base dockerfile to use the official emscripten one. Code size delta for full build is +5 kb For future reference, emsdk decides which "library JS" files to pull in usinga83ba99d60/tools/building.py (L1553)
Those JS files live in src (e.g.a83ba99d60/src/library_html5_webgl.js (L222)
) and define functions that the C++ code can call. I'd like to follow-up on what -lEGL is doing. Also, since the new image no longer has depot_tools, we need to make docker/skia-wasm-release/Dockerfile install it. Change-Id: I5a38e61e5080e9c4cb1e0a7e031509bcb107ff86 Reviewed-on: https://skia-review.googlesource.com/c/skia/+/311726 Reviewed-by: Nathaniel Nifong <nifong@google.com>
28 lines
958 B
Bash
Executable File
28 lines
958 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 gold-karma-chrome-tests
|
|
# and a Skia checkout has been mounted at /SRC and the output directory
|
|
# is mounted at /OUT
|
|
|
|
set -ex
|
|
|
|
#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/../../modules/canvaskit
|
|
|
|
# Start the aggregator in the background
|
|
/opt/gold-aggregator $@ &
|
|
# Run the tests
|
|
npx karma start $CANVASKIT_DIR/karma.conf.js --single-run
|
|
# Tell the aggregator to dump the json
|
|
# This curl command gets the HTTP code and stores it into $CODE
|
|
CODE=`curl -s -o /dev/null -I -w "%{http_code}" -X POST localhost:8081/dump_json`
|
|
if [ $CODE -ne 200 ]; then
|
|
# If we don't get 200 back, something is wrong with writing to disk, so exit with error
|
|
exit 1
|
|
fi
|