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