Chromium Code Reviews| 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") { |