Libvpx. Enabling processor-specific instruction sets

pull/53/head
Javernaut 4 years ago
parent f1790450e4
commit 05130e8cd9
  1. 47
      scripts/libvpx/build.sh

@ -1,5 +1,24 @@
#!/usr/bin/env bash
#Use --cpu
#Try x-android-gcc with manual CC, CXX and other
case $ANDROID_ABI in
x86)
EXTRA_BUILD_FLAGS="--enable-sse2 --enable-sse3 --enable-ssse3"
;;
x86_64)
EXTRA_BUILD_FLAGS="--enable-sse2 --enable-sse3 --enable-ssse3 --enable-sse4_1"
;;
armeabi-v7a)
EXTRA_BUILD_FLAGS="--enable-thumb --enable-neon --enable-neon-asm"
;;
arm64-v8a)
EXTRA_BUILD_FLAGS="--enable-thumb --enable-neon --enable-neon-asm"
;;
esac
CC=${FAM_CC} \
CXX=${FAM_CXX} \
AR=${FAM_AR} \
@ -8,19 +27,29 @@ AS=${FAM_AS} \
STRIP=${FAM_STRIP} \
NM=${FAM_NM} \
./configure \
${EXTRA_BUILD_FLAGS} \
--prefix=${INSTALL_DIR} \
--target=generic-gnu \
--libc=${SYSROOT_PATH} \
--enable-pic \
--enable-realtime-only \
--enable-install-libs \
--enable-multithread \
--enable-webm-io \
--enable-libyuv \
--enable-small \
--enable-better-hw-compatibility \
--enable-vp8 \
--enable-vp9 \
--enable-static \
--disable-shared \
--disable-ccache \
--disable-debug \
--disable-gprof \
--disable-gcov \
--enable-thumb \
--enable-realtime-only \
--disable-dependency-tracking \
--disable-install-docs \
--disable-install-bins \
--enable-install-libs \
--disable-install-srcs \
--disable-examples \
--disable-tools \
@ -28,17 +57,7 @@ NM=${FAM_NM} \
--disable-unit-tests \
--disable-decode-perf-tests \
--disable-encode-perf-tests \
--libc=${SYSROOT_PATH} \
--enable-better-hw-compatibility \
--enable-vp8 \
--enable-vp9 \
--disable-runtime-cpu-detect \
--enable-static \
--disable-shared \
--enable-multithread \
--enable-webm-io \
--enable-libyuv \
--enable-small || exit 1
--disable-runtime-cpu-detect || exit 1
${MAKE_EXECUTABLE} clean
${MAKE_EXECUTABLE} -j${HOST_NPROC}

Loading…
Cancel
Save