[vlc-devel] [PATCH 3/6] contrib: aom: conditionnaly enable NEON and set AS_EXECUTABLE

Alexandre Janniaux ajanni at videolabs.io
Fri Nov 22 16:08:01 CET 2019


Without the correct configuration, it will raise errors.
---
 contrib/src/aom/rules.mak | 12 ++++++++++++
 1 file changed, 12 insertions(+)

diff --git a/contrib/src/aom/rules.mak b/contrib/src/aom/rules.mak
index ee1df0b77e..457b5faa1e 100644
--- a/contrib/src/aom/rules.mak
+++ b/contrib/src/aom/rules.mak
@@ -48,6 +48,12 @@ AOM_CONF := \
 	-DCONFIG_INSTALL_DOCS=0 \
 	-DCONFIG_DEPENDENCY_TRACKING=0
 
+ifdef HAVE_NEON
+AOM_CONF += -DENABLE_NEON=ON
+else
+AOM_CONF += -DENABLE_NEON=OFF
+endif
+
 ifndef BUILD_ENCODERS
 AOM_CONF += -DCONFIG_AV1_ENCODER=0
 endif
@@ -76,6 +82,12 @@ endif
 
 # Force cpu detection
 ifdef HAVE_ANDROID
+ifneq ($(ARCH),x86)
+ifneq ($(ARCH),x86_64)
+AOM_CONF += -DAS_EXECUTABLE="$(AS)"
+endif
+endif
+
 ifeq ($(ARCH),aarch64)
 AOM_CONF += -DAOM_TARGET_CPU=arm64
 endif
-- 
2.24.0



More information about the vlc-devel mailing list