From 2565fa8ffb43cd8478d7f4984e27d4ae091dbdba Mon Sep 17 00:00:00 2001 From: James Zern Date: Wed, 15 Apr 2020 19:53:12 -0700 Subject: [PATCH] README.webp_js: update cmake command remove EMSCRIPTEN_GENERATE_BITCODE_STATIC_LIBRARIES, this option is only supported with the deprecated fastcomp backend; the wasm version will begin to throw an error if it's used. 1.39.12 already fails to build when using this option. + fix a typo BUG=webp:463 Change-Id: I7175df4d5b2b6cb6aaf20eb41063c09c03b9b69a --- README.webp_js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/README.webp_js b/README.webp_js index e78360c1..240130a6 100644 --- a/README.webp_js +++ b/README.webp_js @@ -26,14 +26,13 @@ using Emscripten and CMake. cd webp_js && \ cmake -DWEBP_BUILD_WEBP_JS=ON \ - -DEMSCRIPTEN_GENERATE_BITCODE_STATIC_LIBRARIES=1 \ -DCMAKE_TOOLCHAIN_FILE=$EMSCRIPTEN/cmake/Modules/Platform/Emscripten.cmake \ ../ - compile webp.js using 'make'. - that's it! Upon completion, you should have the webp.js and - webp.js.mem files generated. + webp.wasm files generated. The callable JavaScript function is WebPToSDL(), which decodes a raw WebP bitstream into a canvas. See webp_js/index.html for a simple usage sample