aboutsummaryrefslogtreecommitdiff
path: root/BUILD.gn
diff options
context:
space:
mode:
authorIvan Pavlotskiy <ivan.pavlotskiy@lgepartner.com>2022-05-13 12:15:45 +0300
committerlibyuv LUCI CQ <libyuv-scoped@luci-project-accounts.iam.gserviceaccount.com>2022-05-13 10:12:38 +0000
commit966768e899c0eb932e1cd72935d37e15284daec0 (patch)
tree97dc7adc534287465c0dd3186be9a395cdda323e /BUILD.gn
parentde71c67e53d79190b5b7cc760ade9027855dd945 (diff)
downloadlibyuv-966768e899c0eb932e1cd72935d37e15284daec0.tar.gz
Fix compile errors for ARM targets when libyuv_use_neon = false
When building for ARM target with "libyuv_use_neon" set to false, the build fails because there are still codes that reference to the NEON related functions. To disable these code parts completely, the LIBYUV_DISABLE_NEON macro should be defined when the "libyuv_use_neon" is set to false. Bug: libyuv:929 Change-Id: I8f34288d0d17dd29b85db004e62d83e4ace3d595 Reviewed-on: https://chromium-review.googlesource.com/c/libyuv/libyuv/+/3628112 Reviewed-by: Mirko Bonadei <mbonadei@chromium.org> Commit-Queue: Mirko Bonadei <mbonadei@chromium.org>
Diffstat (limited to 'BUILD.gn')
-rw-r--r--BUILD.gn4
1 files changed, 4 insertions, 0 deletions
diff --git a/BUILD.gn b/BUILD.gn
index 2c9c3e6e..a72ff065 100644
--- a/BUILD.gn
+++ b/BUILD.gn
@@ -27,6 +27,10 @@ config("libyuv_config") {
if (is_android && current_cpu != "arm64") {
ldflags = [ "-Wl,--dynamic-linker,/system/bin/linker" ]
}
+
+ if (!libyuv_use_neon) {
+ defines = [ "LIBYUV_DISABLE_NEON" ]
+ }
}
# This target is built when no specific target is specified on the command line.