From bae4df71c94e2096b0948b52974925d795c5121d Mon Sep 17 00:00:00 2001 From: Alex Panov Date: Thu, 11 Oct 2018 17:55:50 +0300 Subject: [PATCH] webp-dll for mac os x --- README.md | 16 ++++++++++++++++ build.xml | 35 ++++++++++++++++++++++++++++++++++- 2 files changed, 50 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 29bc10f..2f22c7b 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,18 @@ # one-webp JNI wrapper to convert JPEG and PNG to WebP + +### Mac OS X +Before build native library it's needed to install libpng, libwebp and jpeg-turbo: + +Using brew: +``` + brew install libpng + + brew install webp + + brew install jpeg-turbo + ``` +For build libonewebp.dylib: +``` +ant clean webp-dll -Djpeg-turbo.version=2.0.0 -Dlibpng.version=1.6.35 -Dlibwebp.version=1.0.0 +``` \ No newline at end of file diff --git a/build.xml b/build.xml index ced1cfa..f1c76a1 100644 --- a/build.xml +++ b/build.xml @@ -8,6 +8,10 @@ + + + + @@ -52,7 +56,7 @@ - + @@ -78,6 +82,35 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +