mirror of
https://chromium.googlesource.com/libyuv/libyuv
synced 2025-12-06 16:56:55 +08:00
Fix standalone GN build.
Add dependencies and move the neon target to only be specified for ARM builds so a standalone GN build can be performed. TESTED=Ran: gn gen out/Release --args=is_debug=false ninja -C out/Release gn gen out/Debug --args=is_debug=true ninja -C out/Debug gn gen out/Debug --args="is_debug=true os=\"android\" "cpu_arch=\"arm\"" ninja -C out/Debug gn gen out/Release --args="is_debug=false os=\"android\" "cpu_arch=\"arm\"" ninja -C out/Release R=fbarchard@google.com Review URL: https://webrtc-codereview.appspot.com/42289004 git-svn-id: http://libyuv.googlecode.com/svn/trunk@1317 16f28f9a-4ce2-e073-06de-1de4eb20be90
This commit is contained in:
parent
1d87532f00
commit
0e53718e01
1
.gitignore
vendored
1
.gitignore
vendored
@ -14,6 +14,7 @@ third_party/
|
||||
tools/android
|
||||
tools/clang
|
||||
tools/find_depot_tools.py
|
||||
tools/generate_library_loader
|
||||
tools/gn
|
||||
tools/gyp
|
||||
tools/memory
|
||||
|
||||
8
BUILD.gn
8
BUILD.gn
@ -15,6 +15,8 @@ config("libyuv_config") {
|
||||
]
|
||||
}
|
||||
|
||||
use_neon = current_cpu == "arm" && (arm_use_neon || arm_optionally_use_neon)
|
||||
|
||||
source_set("libyuv") {
|
||||
sources = [
|
||||
"include/libyuv.h",
|
||||
@ -90,12 +92,13 @@ source_set("libyuv") {
|
||||
"//third_party:jpeg",
|
||||
]
|
||||
|
||||
if (current_cpu == "arm" && (arm_use_neon || arm_optionally_use_neon)) {
|
||||
if (use_neon) {
|
||||
deps += [ ":libyuv_neon" ]
|
||||
}
|
||||
}
|
||||
|
||||
static_library("libyuv_neon") {
|
||||
if (use_neon) {
|
||||
static_library("libyuv_neon") {
|
||||
sources = [
|
||||
"source/compare_neon.cc",
|
||||
"source/compare_neon64.cc",
|
||||
@ -111,4 +114,5 @@ static_library("libyuv_neon") {
|
||||
|
||||
configs -= [ "//build/config/compiler:compiler_arm_fpu" ]
|
||||
cflags = [ "-mfpu=neon" ]
|
||||
}
|
||||
}
|
||||
|
||||
@ -43,11 +43,13 @@ DIRECTORIES = [
|
||||
'third_party/binutils',
|
||||
'third_party/libjpeg',
|
||||
'third_party/libjpeg_turbo',
|
||||
'third_party/libudev',
|
||||
'third_party/llvm-build',
|
||||
'third_party/nss',
|
||||
'third_party/yasm',
|
||||
'tools/android',
|
||||
'tools/clang',
|
||||
'tools/generate_library_loader',
|
||||
'tools/gn',
|
||||
'tools/gyp',
|
||||
'tools/memory',
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user