diff --git a/scripts/libwebp/build.sh b/scripts/libwebp/build.sh new file mode 100644 index 0000000..d2eace7 --- /dev/null +++ b/scripts/libwebp/build.sh @@ -0,0 +1,12 @@ +#!/usr/bin/env bash + +./configure \ + --prefix=${INSTALL_DIR} \ + --host=${TARGET_TRIPLE_MACHINE_ARCH}-linux-android \ + --with-sysroot=${SYSROOT_PATH} \ + --target=${TARGET} \ + CC=${FAM_CC} || exit 1 + +${MAKE_EXECUTABLE} clean +${MAKE_EXECUTABLE} -j${HOST_NPROC} +${MAKE_EXECUTABLE} install diff --git a/scripts/libwebp/download.sh b/scripts/libwebp/download.sh new file mode 100644 index 0000000..f64977b --- /dev/null +++ b/scripts/libwebp/download.sh @@ -0,0 +1,9 @@ +#!/usr/bin/env bash + +source ${SCRIPTS_DIR}/common-functions.sh + +WEBP_VERSION=1.2.1 + +downloadTarArchive \ + "libwebp" \ + "https://storage.googleapis.com/downloads.webmproject.org/releases/webp/libwebp-${WEBP_VERSION}.tar.gz" diff --git a/scripts/parse-arguments.sh b/scripts/parse-arguments.sh index eb9fd3a..6f3361b 100755 --- a/scripts/parse-arguments.sh +++ b/scripts/parse-arguments.sh @@ -22,6 +22,7 @@ SUPPORTED_LIBRARIES_FREE=( "libtwolame" "libspeex" "libvpx" + "libwebp" "libfreetype" "libfribidi" ) @@ -85,6 +86,9 @@ for argument in "$@"; do --enable-libopus | -opus) EXTERNAL_LIBRARIES+=("libopus") ;; + --enable-webp | -webp) + EXTERNAL_LIBRARIES+=("libwebp") + ;; --enable-libwavpack | -wavpack) EXTERNAL_LIBRARIES+=("libwavpack") ;;