Initial libvpx integration

pull/53/head
Javernaut 4 years ago
parent 2be0a498a7
commit 1e890e87f7
  1. 44
      scripts/libvpx/build.sh
  2. 10
      scripts/libvpx/download.sh
  3. 3
      scripts/parse-arguments.sh

@ -0,0 +1,44 @@
#!/usr/bin/env bash
CC=${FAM_CC} \
CXX=${FAM_CXX} \
AR=${FAM_AR} \
LD=${FAM_LD} \
AS=${FAM_AS} \
STRIP=${FAM_STRIP} \
NM=${FAM_NM} \
./configure \
--prefix=${INSTALL_DIR} \
--enable-pic \
--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 \
--disable-docs \
--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
${MAKE_EXECUTABLE} clean
${MAKE_EXECUTABLE} -j${HOST_NPROC}
${MAKE_EXECUTABLE} install

@ -0,0 +1,10 @@
#!/usr/bin/env bash
source ${SCRIPTS_DIR}/common-functions.sh
VPX_VERSION=v1.8.2
downloadTarArchive \
"libvpx" \
"https://chromium.googlesource.com/webm/libvpx/+archive/${VPX_VERSION}.tar.gz" \
true

@ -88,6 +88,9 @@ for argument in "$@"; do
--enable-libspeex|-speex)
EXTERNAL_LIBRARIES+=( "libspeex" )
;;
--enable-libvpx|-vpx)
EXTERNAL_LIBRARIES+=( "libvpx" )
;;
*)
echo "Unknown argument $argument"
;;

Loading…
Cancel
Save