Commit Graph

1 Commits

Author SHA1 Message Date
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