From 7ed2bb122718ee7842541839c3e13f04469281f1 Mon Sep 17 00:00:00 2001 From: "fbarchard@google.com" Date: Fri, 27 Feb 2015 22:12:17 +0000 Subject: [PATCH] Add Neon source files to libyuv GN build BUG=none TESTED=untested R=bcornell@google.com Review URL: https://webrtc-codereview.appspot.com/42149004 git-svn-id: http://libyuv.googlecode.com/svn/trunk@1303 16f28f9a-4ce2-e073-06de-1de4eb20be90 --- BUILD.gn | 24 +++++++++++++++++++++++- 1 file changed, 23 insertions(+), 1 deletion(-) diff --git a/BUILD.gn b/BUILD.gn index b36c5d26e..905c8c08f 100644 --- a/BUILD.gn +++ b/BUILD.gn @@ -6,6 +6,8 @@ # in the file PATENTS. All contributing project authors may # be found in the AUTHORS file in the root of the source tree. +import("//build/config/arm.gni") + config("libyuv_config") { include_dirs = [ ".", @@ -88,5 +90,25 @@ source_set("libyuv") { "//third_party:jpeg", ] - # TODO(GYP) Neon build. + if (current_cpu == "arm" && (arm_use_neon || arm_optionally_use_neon)) { + deps += [ ":libyuv_neon" ] + } +} + +static_library("libyuv_neon") { + sources = [ + "source/compare_neon.cc", + "source/compare_neon64.cc", + "source/rotate_neon.cc", + "source/rotate_neon64.cc", + "source/row_neon.cc", + "source/row_neon64.cc", + "source/scale_neon.cc", + "source/scale_neon64.cc", + ] + + public_configs = [ ":libyuv_config" ] + + configs -= [ "//build/config/compiler:compiler_arm_fpu" ] + cflags = [ "-mfpu=neon" ] }