Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(237)

Unified Diff: BUILD.gn

Issue 2272243003: Add neon and crc32 sources for aarch64 (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Fix according to comments Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: BUILD.gn
diff --git a/BUILD.gn b/BUILD.gn
index 930bf62db4dda2c0c602bc4bb1fbdcd5c5f04802..6774890d1d216dc349872acc41831d2b9711f441 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",
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698