3 AOM_GITURL
:= https
://aomedia.googlesource.com
/aom
/+archive
/$(AOM_VERSION
).
tar.gz
6 ifeq ($(call need_pkg
,"aom"),)
10 $(TARBALLS
)/aom-
$(AOM_VERSION
).
tar.gz
:
11 $(call download_pkg
,$(AOM_GITURL
),aom
)
13 .sum-aom
: aom-
$(AOM_VERSION
).
tar.gz
14 $(warning
$@ not implemented
)
17 aom
: aom-
$(AOM_VERSION
).
tar.gz .sum-aom
18 rm -Rf
$(UNPACK_DIR
) $@
19 mkdir
-p
$(UNPACK_DIR
)
20 tar xvzfo
"$<" -C
$(UNPACK_DIR
)
22 $(APPLY
) $(SRC
)/aom
/aom-android-pthreads.patch
23 $(APPLY
) $(SRC
)/aom
/aom-android-cpufeatures.patch
27 cp
$(ANDROID_NDK
)/sources
/android
/cpufeatures
/cpu-features.c
$(ANDROID_NDK
)/sources
/android
/cpufeatures
/cpu-features.h aom
/aom_ports
/
32 DEPS_aom
+= pthreads
$(DEPS_pthreads
)
35 AOM_LDFLAGS
:= $(LDFLAGS
)
38 -DCONFIG_RUNTIME_CPU_DETECT
=1 \
39 -DCONFIG_MULTITHREAD
=1 \
41 -DENABLE_EXAMPLES
=OFF \
43 -DCONFIG_UNIT_TESTS
=0 \
45 -DCONFIG_INSTALL_BINS
=0 \
46 -DCONFIG_INSTALL_DOCS
=0 \
47 -DCONFIG_DEPENDENCY_TRACKING
=0
50 AOM_CONF
+= -DCONFIG_AV1_ENCODER
=0
54 AOM_CONF
+= -DCONFIG_PIC
=1
58 ifneq ($(filter arm aarch64
, $(ARCH
)),)
59 # These targets don't have runtime cpu detection.
60 AOM_CONF
+= -DCONFIG_RUNTIME_CPU_DETECT
=0
63 # armv7, not just plain arm
64 AOM_CONF
+= -DAOM_ADS2GAS_REQUIRED
=1 -DAOM_ADS2GAS
=..
/build
/make
/ads2gas.pl
-DAOM_ADS2GAS_OPTS
="-thumb;-noelf" -DAOM_GAS_EXT
=S
69 ifneq ($(filter arm aarch64
, $(ARCH
)),)
70 # These targets don't have runtime cpu detection.
71 AOM_CONF
+= -DCONFIG_RUNTIME_CPU_DETECT
=0
77 ifeq ($(ARCH
),aarch64
)
78 AOM_CONF
+= -DAOM_TARGET_CPU
=arm64
83 # armv7, not just plain arm
84 AOM_CONF
+= -DAOM_TARGET_CPU
=armv7
87 # libaom doesn't allow in-tree builds
88 .aom
: aom toolchain.cmake
89 rm -rf
$(PREFIX
)/include/aom
90 cd
$< && rm -rf aom_build
&& mkdir
-p aom_build
91 cd
$</aom_build
&& LDFLAGS
="$(AOM_LDFLAGS)" $(HOSTVARS
) $(CMAKE
) ..
/ $(AOM_CONF
)
92 cd
$< && $(CMAKEBUILD
) aom_build
93 $(call pkg_static
,"aom_build/aom.pc")
94 cd
$</aom_build
&& $(CMAKEBUILD
) .
--target
install