skia2/infra/cross-compile/docker/cross-linux-arm64/Dockerfile
Kevin Lubick 3565027f6c Add dockerfile to cross-compile for arm64 linux
Use instructions to follow.

GN args might look something like:

cc="clang"
cxx="clang++"

extra_asmflags = [
    "--target=aarch64-linux-gnu",
    "--sysroot=/usr/aarch64-linux-gnu",
    "-march=armv8-a",
]

extra_cflags=[
    "--target=aarch64-linux-gnu",
    "--sysroot=/usr/aarch64-linux-gnu",
    "-I/GLES/include/",
    "-DMESA_EGL_NO_X11_HEADERS",
    "-g0",
]

extra_cflags_cc=[
    "-stdlib=libc++",
]

extra_ldflags=[
    "-fuse-ld=lld",
    "--target=aarch64-linux-gnu",
    "-L/GLES/lib64",
    "-stdlib=libc++",
    "-lc++abi"
]

target_cpu="arm64"
skia_use_fontconfig = false
skia_use_system_freetype2 = false
skia_use_egl = true

Bug: skia:
Change-Id: I20632d8dc906625d5771f755b094fd0c2ed62706
Reviewed-on: https://skia-review.googlesource.com/c/193472
Reviewed-by: Joe Gregorio <jcgregorio@google.com>
2019-02-20 19:04:11 +00:00

15 lines
377 B
Docker

FROM launcher.gcr.io/google/clang-debian9 AS build
RUN apt-get update && apt-get upgrade -y && apt-get install -y \
binutils-aarch64-linux-gnu \
git \
libc6-dev-arm64-cross \
libegl1-mesa-dev \
libstdc++-6-dev-arm64-cross \
python
RUN cd /opt \
&& git clone 'https://chromium.googlesource.com/chromium/tools/depot_tools.git'
ENV PATH="/opt/depot_tools:${PATH}"