Skip to content

Commit

Permalink
README.webp_js: update cmake command
Browse files Browse the repository at this point in the history
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
  • Loading branch information
jzern committed Apr 16, 2020
1 parent 47309ef commit 2565fa8
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions README.webp_js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 2565fa8

Please sign in to comment.