Skip to content

Instantly share code, notes, and snippets.

@skyzyx
Created August 24, 2018 19:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save skyzyx/150b706bdc201ffcd3d8952eab859641 to your computer and use it in GitHub Desktop.
Save skyzyx/150b706bdc201ffcd3d8952eab859641 to your computer and use it in GitHub Desktop.
Build all of the binaries for the WebP CLI tools.
#! /usr/bin/env bash
rm -Rf /tmp/libwebp && \
git clone https://github.com/webmproject/libwebp.git /tmp/libwebp && \
mkdir -p /tmp/libwebp/build && \
cd /tmp/libwebp/build && \
cmake -DWEBP_ENABLE_SIMD=ON -DWEBP_BUILD_CWEBP=ON -DWEBP_BUILD_DWEBP=ON -DWEBP_BUILD_GIF2WEBP=ON -DWEBP_BUILD_IMG2WEBP=ON -DWEBP_BUILD_WEBPINFO=ON -DWEBP_NEAR_LOSSLESS=ON ../ && \
make && \
make install
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment