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>
19 lines
725 B
Makefile
19 lines
725 B
Makefile
EMSDK_VERSION=2.0.0_v1
|
|
|
|
# Can check CHROME_VERSION with
|
|
# docker run karma-chrome-tests /usr/bin/google-chrome-stable --version
|
|
CHROME_VERSION=77.0.3865.120_v1
|
|
|
|
publish_emsdk_base:
|
|
docker build --no-cache -t emsdk-base ./emsdk-base/
|
|
docker tag emsdk-base gcr.io/skia-public/emsdk-base:${EMSDK_VERSION}
|
|
docker push gcr.io/skia-public/emsdk-base:${EMSDK_VERSION}
|
|
docker tag emsdk-base gcr.io/skia-public/emsdk-base:prod
|
|
docker push gcr.io/skia-public/emsdk-base:prod
|
|
|
|
publish_karma_chrome_tests:
|
|
docker build --no-cache -t karma-chrome-tests ./karma-chrome-tests/
|
|
docker tag karma-chrome-tests gcr.io/skia-public/karma-chrome-tests:${CHROME_VERSION}
|
|
docker push gcr.io/skia-public/karma-chrome-tests:${CHROME_VERSION}
|
|
|