dff41733f9
This reverts commit b2031d4255
.
Reason for revert: Breaks fiddle.
Original change's description:
> fiddle - Don't make warnings into errors.
>
> Bug: skia:
> Change-Id: I01327003aa6a674dda9f8959fa69a386d0c017a8
> Reviewed-on: https://skia-review.googlesource.com/c/skia/+/183982
> Reviewed-by: Ravi Mistry <rmistry@google.com>
> Commit-Queue: Ravi Mistry <rmistry@google.com>
> Auto-Submit: Joe Gregorio <jcgregorio@google.com>
TBR=rmistry@google.com,jcgregorio@google.com
Change-Id: If85a7da4a523277208d197dc01e534aec2cc6d67
No-Presubmit: true
No-Tree-Checks: true
No-Try: true
Bug: skia:
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/269490
Reviewed-by: Joe Gregorio <jcgregorio@google.com>
Commit-Queue: Joe Gregorio <jcgregorio@google.com>
47 lines
1.2 KiB
Docker
47 lines
1.2 KiB
Docker
# Dockerfile for building Skia in release mode, using 3rd party libs from DEPS, with SwiftShader.
|
|
FROM gcr.io/skia-public/skia-build-tools:latest
|
|
|
|
RUN cd /tmp \
|
|
&& git clone https://swiftshader.googlesource.com/SwiftShader swiftshader
|
|
|
|
# Checkout Skia.
|
|
RUN mkdir -p /tmp/skia \
|
|
&& cd /tmp/skia \
|
|
&& fetch skia \
|
|
&& cd skia \
|
|
&& gclient sync \
|
|
&& ./bin/fetch-gn
|
|
|
|
# Write args.gn.
|
|
RUN mkdir -p /tmp/skia/skia/out/Static
|
|
RUN echo ' \n\
|
|
cc = "clang" \n\
|
|
cxx = "clang++" \n\
|
|
skia_use_egl = true \n\
|
|
is_debug = false \n\
|
|
skia_use_system_freetype2 = false \n\
|
|
extra_cflags = [ \n\
|
|
"-I/tmp/swiftshader/include", \n\
|
|
"-DGR_EGL_TRY_GLES3_THEN_GLES2", \n\
|
|
"-g0", \n\
|
|
] \n\
|
|
extra_ldflags = [ \n\
|
|
"-L/usr/local/lib", \n\
|
|
"-Wl,-rpath", \n\
|
|
"-Wl,/usr/local/lib" \n\
|
|
] ' > /tmp/skia/skia/out/Static/args.gn
|
|
|
|
# Build Skia.
|
|
RUN cd /tmp/skia/skia \
|
|
&& ./bin/gn gen out/Static \
|
|
&& git rev-parse HEAD > VERSION \
|
|
&& /tmp/depot_tools/ninja -C out/Static \
|
|
&& chown -R skia:skia .
|
|
|
|
# Uncomment the lines below and update the ref to patch in a CL.
|
|
#
|
|
#RUN cd /tmp/skia/skia \
|
|
# && git fetch https://skia.googlesource.com/skia refs/changes/25/130325/15 \
|
|
# && git checkout FETCH_HEAD \
|
|
# && /tmp/depot_tools/ninja -C out/Static
|