mirror of
https://chromium.googlesource.com/libyuv/libyuv
synced 2025-12-07 17:26:49 +08:00
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
This commit is contained in:
parent
933bd40c3c
commit
7ed2bb1227
24
BUILD.gn
24
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" ]
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user