Merge pull request #59 from mdrokz/master

Implement `libwebp` compilation support
media-file^2
Alexander Berezhnoi 3 years ago committed by GitHub
commit 41c7f3b940
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 12
      scripts/libwebp/build.sh
  2. 9
      scripts/libwebp/download.sh
  3. 4
      scripts/parse-arguments.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

@ -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"

@ -22,6 +22,7 @@ SUPPORTED_LIBRARIES_FREE=(
"libtwolame" "libtwolame"
"libspeex" "libspeex"
"libvpx" "libvpx"
"libwebp"
"libfreetype" "libfreetype"
"libfribidi" "libfribidi"
) )
@ -85,6 +86,9 @@ for argument in "$@"; do
--enable-libopus | -opus) --enable-libopus | -opus)
EXTERNAL_LIBRARIES+=("libopus") EXTERNAL_LIBRARIES+=("libopus")
;; ;;
--enable-webp | -webp)
EXTERNAL_LIBRARIES+=("libwebp")
;;
--enable-libwavpack | -wavpack) --enable-libwavpack | -wavpack)
EXTERNAL_LIBRARIES+=("libwavpack") EXTERNAL_LIBRARIES+=("libwavpack")
;; ;;

Loading…
Cancel
Save