summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhclam@chromium.org <hclam@chromium.org>2014-09-05 23:48:29 +0000
committerhclam@chromium.org <hclam@chromium.org>2014-09-05 23:48:29 +0000
commit71513d8f2786d36e1e7bd3357dff8ce03361c19e (patch)
treec6ffbf7eab4ae8a012c762a9f16591b35984499c
parentbd09f762630df926103d21373961ced61ca0a653 (diff)
downloadlibvpx-71513d8f2786d36e1e7bd3357dff8ce03361c19e.tar.gz
libvpx: exclude NEON target on x86 for GN build
Exclude NEON targets such that GN can build for all targets. TBR=tomfinegan Review URL: https://codereview.chromium.org/550533002 git-svn-id: http://src.chromium.org/svn/trunk/deps/third_party/libvpx@291837 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
-rw-r--r--BUILD.gn10
1 files changed, 6 insertions, 4 deletions
diff --git a/BUILD.gn b/BUILD.gn
index 86036ce..2e35ef9 100644
--- a/BUILD.gn
+++ b/BUILD.gn
@@ -170,10 +170,12 @@ static_library("libvpx_intrinsics_sse4_1") {
}
}
-static_library("libvpx_intrinsics_neon") {
- configs += [ ":libvpx_config" ]
- cflags = [ "-mfpu=neon", "-mfloat-abi=softfp" ]
- sources = libvpx_srcs_arm_neon_cpu_detect_neon
+if (cpu_arch_full == "arm-neon-cpu-detect") {
+ static_library("libvpx_intrinsics_neon") {
+ configs += [ ":libvpx_config" ]
+ cflags = [ "-mfpu=neon", "-mfloat-abi=softfp" ]
+ sources = libvpx_srcs_arm_neon_cpu_detect_neon
+ }
}
static_library("libvpx") {