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

Unified Diff: BUILD.gn

Issue 865893004: Add avx2 sources to GN build file (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 | 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 18d41f2f479fee2c22bf0de7d6f262e0277a22a3..45eecb640340188604ca1dd063415fda23df880a 100644
--- a/BUILD.gn
+++ b/BUILD.gn
@@ -127,6 +127,20 @@ static_library("libvpx_intrinsics_sse4_1") {
}
}
+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 = [ "-mavx2" ]
ckocagil 2015/01/22 18:25:13 This should be: if (is_win) { cflags = [ "/
+ }
+ 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") {
configs -= [ "//build/config/compiler:compiler_arm_fpu" ]
@@ -220,6 +234,7 @@ static_library("libvpx") {
":libvpx_intrinsics_sse2",
":libvpx_intrinsics_ssse3",
":libvpx_intrinsics_sse4_1",
+ ":libvpx_intrinsics_avx2",
]
}
if (cpu_arch_full == "arm-neon-cpu-detect") {
« 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