| # Dockerfile for building Skia in release mode, using 3rd party libs from DEPS, with SwiftShader. |
| FROM gcr.io/skia-public/skia-build-tools:latest |
| && git clone https://swiftshader.googlesource.com/SwiftShader swiftshader |
| RUN mkdir -p /tmp/skia/skia/out/Static |
| skia_use_system_freetype2 = false \n\ |
| "-I/tmp/swiftshader/include", \n\ |
| "-DGR_EGL_TRY_GLES3_THEN_GLES2", \n\ |
| ] ' > /tmp/skia/skia/out/Static/args.gn |
| && ./bin/gn gen out/Static \ |
| && git rev-parse HEAD > VERSION \ |
| && /tmp/depot_tools/ninja -C out/Static \ |
| # Uncomment the lines below and update the ref to patch in a CL. |
| # && git fetch https://skia.googlesource.com/skia refs/changes/25/130325/15 \ |
| # && git checkout FETCH_HEAD \ |
| # && /tmp/depot_tools/ninja -C out/Static |