[vlc-commits] contrib/aom: fix compilation for iOS and tvOS
Felix Paul Kühne
git at videolan.org
Tue Oct 9 15:19:25 CEST 2018
vlc | branch: master | Felix Paul Kühne <felix at feepk.net> | Tue Oct 9 15:12:47 2018 +0200| [b479f6d26ae8c12873fd32b208894ff0753f2c00] | committer: Felix Paul Kühne
contrib/aom: fix compilation for iOS and tvOS
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=b479f6d26ae8c12873fd32b208894ff0753f2c00
---
contrib/src/aom/rules.mak | 11 +++++++++++
1 file changed, 11 insertions(+)
diff --git a/contrib/src/aom/rules.mak b/contrib/src/aom/rules.mak
index bc0bca9e65..f1973dc24f 100644
--- a/contrib/src/aom/rules.mak
+++ b/contrib/src/aom/rules.mak
@@ -63,6 +63,17 @@ AOM_CONF += -DAOM_ADS2GAS_REQUIRED=1 -DAOM_ADS2GAS=../build/make/ads2gas.pl -DAO
endif
endif
+ifdef HAVE_IOS
+ifneq ($(filter arm aarch64, $(ARCH)),)
+# These targets don't have runtime cpu detection.
+AOM_CONF += -DCONFIG_RUNTIME_CPU_DETECT=0
+endif
+ifeq ($(ARCH),arm)
+# armv7, not just plain arm
+AOM_CONF += -DAOM_TARGET_CPU=armv7
+endif
+endif
+
# libaom doesn't allow in-tree builds
.aom: aom toolchain.cmake
cd $< && mkdir -p aom_build
More information about the vlc-commits
mailing list