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

Unified Diff: BUILD.gn

Issue 884013006: Enable AVX2 in libvpx (Closed) Base URL: https://chromium.googlesource.com/chromium/deps/libvpx.git@master
Patch Set: Created 5 years, 11 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 | generate_gypi.sh » ('j') | 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 80452237475c1cc9c82e249ad99db3883737cb88..0ce78c849a4fa5dc2dee3ba9a0a0cde0fd5b8fd5 100644
--- a/BUILD.gn
+++ b/BUILD.gn
@@ -127,22 +127,21 @@ static_library("libvpx_intrinsics_sse4_1") {
}
}
-# Uncomment when enabling AVX2
-#static_library("libvpx_intrinsics_avx2") {
-# configs += [ ":libvpx_config" ]
-# configs -= [ "//build/config/compiler:chromium_code" ]
-# configs += [ "//build/config/compiler:no_chromium_code" ]
-# if (is_win) {
-# cflags = [ "/arch:AVX2" ]
-# } else {
-# cflags = [ "-mavx2" ]
-# }
-# if (cpu_arch == "x86") {
-# sources = libvpx_srcs_x86_avx2
-# } else if (cpu_arch == "x64") {
-# sources = libvpx_srcs_x86_64_avx2
-# }
-#}
+static_library("libvpx_intrinsics_avx2") {
+ configs += [ ":libvpx_config" ]
+ configs -= [ "//build/config/compiler:chromium_code" ]
+ configs += [ "//build/config/compiler:no_chromium_code" ]
+ if (is_win) {
+ cflags = [ "/arch:AVX2" ]
+ } else {
+ cflags = [ "-mavx2" ]
+ }
+ if (cpu_arch == "x86") {
+ sources = libvpx_srcs_x86_avx2
+ } else if (cpu_arch == "x64") {
+ sources = libvpx_srcs_x86_64_avx2
+ }
+}
if (cpu_arch_full == "arm-neon-cpu-detect") {
static_library("libvpx_intrinsics_neon") {
@@ -237,7 +236,7 @@ static_library("libvpx") {
":libvpx_intrinsics_sse2",
":libvpx_intrinsics_ssse3",
":libvpx_intrinsics_sse4_1",
- #":libvpx_intrinsics_avx2",
+ ":libvpx_intrinsics_avx2",
]
}
if (cpu_arch_full == "arm-neon-cpu-detect") {
« no previous file with comments | « no previous file | generate_gypi.sh » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698