aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar anmittal <anmittal@chromium.org>2016-08-25 04:55:19 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2016-08-25 04:55:19 -0700
commitb8b3f71c5589aaed8ae76727f3d62642a192b359 (patch)
tree48999669216956a6a809dbd8a6e326494866c44d
parent9d08cbc8c6131ff61a1e71cc5c8cf27841d62b42 (diff)
Add neon and crc32 sources for aarch64
This fixes the build for aarch64 arch BUG=skia: GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2272243003 Review-Url: https://codereview.chromium.org/2272243003
-rw-r--r--BUILD.gn30
1 files changed, 29 insertions, 1 deletions
diff --git a/BUILD.gn b/BUILD.gn
index 930bf62db4..6774890d1d 100644
--- a/BUILD.gn
+++ b/BUILD.gn
@@ -161,8 +161,32 @@ template("opts") {
is_x86 = current_cpu == "x64" || current_cpu == "x86"
+opts("armv7") {
+ enabled = current_cpu == "arm"
+ sources = opts_gypi.armv7_sources
+ cflags = []
+}
+
+opts("neon") {
+ enabled = current_cpu == "arm"
+ sources = opts_gypi.neon_sources
+ cflags = [ "-mfpu=neon" ]
+}
+
+opts("arm64") {
+ enabled = current_cpu == "arm64"
+ sources = opts_gypi.arm64_sources
+ cflags = []
+}
+
+opts("crc32") {
+ enabled = current_cpu == "arm64"
+ sources = opts_gypi.crc32_sources
+ cflags = [ "-march=armv8-a+crc" ]
+}
+
opts("none") {
- enabled = !is_x86
+ enabled = !is_x86 && current_cpu != "arm" && current_cpu != "arm64"
sources = opts_gypi.none_sources
cflags = []
}
@@ -315,9 +339,13 @@ component("skia") {
configs += skia_library_configs
deps = [
+ ":arm64",
+ ":armv7",
":avx",
+ ":crc32",
":gif",
":jpeg",
+ ":neon",
":none",
":pdf",
":png",