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

Unified Diff: BUILD.gn

Issue 2285683002: Add MIPS SIMD Arch (MSA) optimized MirrorRow function (Closed)
Patch Set: 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 | « Android.mk ('k') | CMakeLists.txt » ('j') | include/libyuv/macros_msa.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: BUILD.gn
diff --git a/BUILD.gn b/BUILD.gn
index fed8a68c0d58b15c02df72450e0193997143de3c..f9e913c0d6c4a41fec4ba006a691ee2caa963ed7 100644
--- a/BUILD.gn
+++ b/BUILD.gn
@@ -7,6 +7,7 @@
# be found in the AUTHORS file in the root of the source tree.
import("//build/config/arm.gni")
+import("//build/config/mips.gni")
import("//build/config/sanitizers/sanitizers.gni")
config("libyuv_config") {
@@ -17,6 +18,7 @@ config("libyuv_config") {
}
use_neon = current_cpu == "arm64" || (current_cpu == "arm" && (arm_use_neon || arm_optionally_use_neon))
+use_msa = (current_cpu == "mips64el" || current_cpu == "mipsel") && mips_use_msa
static_library("libyuv") {
sources = [
@@ -93,6 +95,10 @@ static_library("libyuv") {
deps += [ ":libyuv_neon" ]
}
+ if (use_msa) {
+ deps += [ ":libyuv_msa" ]
+ }
+
if (is_nacl) {
# Always enable optimization under NaCl to workaround crbug.com/538243 .
configs -= [ "//build/config/compiler:default_optimization" ]
@@ -122,3 +128,14 @@ if (use_neon) {
}
}
}
+
+if (use_msa) {
+ static_library("libyuv_msa") {
+ sources = [
+ # MSA Source Files
+ "source/row_msa.cc",
+ ]
+
+ public_configs = [ ":libyuv_config" ]
+ }
+}
« no previous file with comments | « Android.mk ('k') | CMakeLists.txt » ('j') | include/libyuv/macros_msa.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698