diff --git a/scripts/libvpx/build.sh b/scripts/libvpx/build.sh new file mode 100755 index 0000000..1671768 --- /dev/null +++ b/scripts/libvpx/build.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 diff --git a/scripts/libvpx/download.sh b/scripts/libvpx/download.sh new file mode 100755 index 0000000..c68fa8f --- /dev/null +++ b/scripts/libvpx/download.sh @@ -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 diff --git a/scripts/parse-arguments.sh b/scripts/parse-arguments.sh index 775cc06..3b338b2 100755 --- a/scripts/parse-arguments.sh +++ b/scripts/parse-arguments.sh @@ -88,6 +88,9 @@ for argument in "$@"; do --enable-libspeex|-speex) EXTERNAL_LIBRARIES+=( "libspeex" ) ;; + --enable-libvpx|-vpx) + EXTERNAL_LIBRARIES+=( "libvpx" ) + ;; *) echo "Unknown argument $argument" ;;