Commit 0e53718e authored by kjellander@google.com's avatar kjellander@google.com

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
parent 1d87532f
...@@ -14,6 +14,7 @@ third_party/ ...@@ -14,6 +14,7 @@ third_party/
tools/android tools/android
tools/clang tools/clang
tools/find_depot_tools.py tools/find_depot_tools.py
tools/generate_library_loader
tools/gn tools/gn
tools/gyp tools/gyp
tools/memory tools/memory
......
...@@ -15,6 +15,8 @@ config("libyuv_config") { ...@@ -15,6 +15,8 @@ config("libyuv_config") {
] ]
} }
use_neon = current_cpu == "arm" && (arm_use_neon || arm_optionally_use_neon)
source_set("libyuv") { source_set("libyuv") {
sources = [ sources = [
"include/libyuv.h", "include/libyuv.h",
...@@ -90,25 +92,27 @@ source_set("libyuv") { ...@@ -90,25 +92,27 @@ source_set("libyuv") {
"//third_party:jpeg", "//third_party:jpeg",
] ]
if (current_cpu == "arm" && (arm_use_neon || arm_optionally_use_neon)) { if (use_neon) {
deps += [ ":libyuv_neon" ] deps += [ ":libyuv_neon" ]
} }
} }
static_library("libyuv_neon") { if (use_neon) {
sources = [ static_library("libyuv_neon") {
"source/compare_neon.cc", sources = [
"source/compare_neon64.cc", "source/compare_neon.cc",
"source/rotate_neon.cc", "source/compare_neon64.cc",
"source/rotate_neon64.cc", "source/rotate_neon.cc",
"source/row_neon.cc", "source/rotate_neon64.cc",
"source/row_neon64.cc", "source/row_neon.cc",
"source/scale_neon.cc", "source/row_neon64.cc",
"source/scale_neon64.cc", "source/scale_neon.cc",
] "source/scale_neon64.cc",
]
public_configs = [ ":libyuv_config" ] public_configs = [ ":libyuv_config" ]
configs -= [ "//build/config/compiler:compiler_arm_fpu" ] configs -= [ "//build/config/compiler:compiler_arm_fpu" ]
cflags = [ "-mfpu=neon" ] cflags = [ "-mfpu=neon" ]
}
} }
...@@ -43,11 +43,13 @@ DIRECTORIES = [ ...@@ -43,11 +43,13 @@ DIRECTORIES = [
'third_party/binutils', 'third_party/binutils',
'third_party/libjpeg', 'third_party/libjpeg',
'third_party/libjpeg_turbo', 'third_party/libjpeg_turbo',
'third_party/libudev',
'third_party/llvm-build', 'third_party/llvm-build',
'third_party/nss', 'third_party/nss',
'third_party/yasm', 'third_party/yasm',
'tools/android', 'tools/android',
'tools/clang', 'tools/clang',
'tools/generate_library_loader',
'tools/gn', 'tools/gn',
'tools/gyp', 'tools/gyp',
'tools/memory', 'tools/memory',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment