43abfa13a7
This allows us to use a newer Clang version that supports C++17. Change-Id: Ifbff4dbd1f1da0212ea633eb81beb50ebe7744ac Bug: skia:12875 Reviewed-on: https://skia-review.googlesource.com/c/skia/+/501479 Reviewed-by: Ben Wagner <bungeman@google.com> Commit-Queue: John Stiles <johnstiles@google.com>
22 lines
779 B
Docker
22 lines
779 B
Docker
# Dockerfile for building an image with all the tools needed to checkout and build Skia.
|
|
FROM launcher.gcr.io/google/debian11 AS build
|
|
RUN apt update && apt dist-upgrade -y && apt install -y \
|
|
git \
|
|
clang \
|
|
python \
|
|
curl \
|
|
build-essential \
|
|
libfontconfig-dev \
|
|
libgl1-mesa-dev \
|
|
libglu1-mesa-dev \
|
|
&& groupadd -g 2000 skia \
|
|
&& useradd -u 2000 -g 2000 skia
|
|
|
|
# TODO(kjlubick): Try a shallow clone of depot_tools
|
|
RUN cd /tmp \
|
|
&& git clone 'https://chromium.googlesource.com/chromium/tools/depot_tools.git'
|
|
|
|
ENV PATH=${PATH}:/tmp/depot_tools
|
|
|
|
ADD --chown=skia:skia https://storage.googleapis.com/skia-swiftshader/libGLESv2.so /usr/local/lib/libGLESv2.so
|
|
ADD --chown=skia:skia https://storage.googleapis.com/skia-swiftshader/libEGL.so /usr/local/lib/libEGL.so |