mirror of
https://github.com/webmproject/libwebp.git
synced 2025-07-15 13:29:54 +02:00
Compare commits
3 Commits
v1.6.0-rc1
...
v1.6.0
Author | SHA1 | Date | |
---|---|---|---|
4fa2191233 | |||
370aa5817e | |||
f83c6b328f |
@ -84,6 +84,15 @@ if(WEBP_BUILD_WEBP_JS)
|
||||
message(NOTICE
|
||||
"wasm2js does not support SIMD, disabling webp.js generation.")
|
||||
endif()
|
||||
|
||||
if(NOT EMSCRIPTEN_VERSION)
|
||||
message(
|
||||
WARNING
|
||||
"EMSCRIPTEN_VERSION not detected!\n"
|
||||
"WEBP_BUILD_WEBP_JS is only supported with emcmake/emmake.\n"
|
||||
"The build may fail if those tools are not used. See webp_js/README.md."
|
||||
)
|
||||
endif()
|
||||
endif()
|
||||
|
||||
set(SHARPYUV_DEP_LIBRARIES)
|
||||
|
@ -1,3 +1,6 @@
|
||||
370aa581 webp_js/README.md: add some more code formatting (``)
|
||||
f83c6b32 CMakeLists: add warning for incorrect emscripten config
|
||||
6a3e656b update ChangeLog (tag: v1.6.0-rc1)
|
||||
bf0bf1e7 api.md: add WebPValidateDecoderConfig to pseudocode
|
||||
e8ae210d update NEWS
|
||||
ce53efd7 bump version to 1.6.0
|
||||
|
@ -13,7 +13,7 @@ Emscripten and CMake.
|
||||
- install the Emscripten SDK following the procedure described at:
|
||||
https://emscripten.org/docs/getting_started/downloads.html#installation-instructions-using-the-emsdk-recommended
|
||||
After installation, you should have some global variable positioned to the
|
||||
location of the SDK. In particular, $EMSDK should point to the top-level
|
||||
location of the SDK. In particular, `$EMSDK` should point to the top-level
|
||||
directory containing Emscripten tools.
|
||||
|
||||
- configure the project 'WEBP_JS' with CMake using:
|
||||
@ -23,12 +23,12 @@ Emscripten and CMake.
|
||||
emcmake cmake -DWEBP_BUILD_WEBP_JS=ON ../
|
||||
```
|
||||
|
||||
- compile webp.js using 'emmake make'.
|
||||
- compile webp.js using `emmake make`.
|
||||
|
||||
- that's it! Upon completion, you should have the 'webp.js', 'webp.js.mem',
|
||||
'webp_wasm.js' and 'webp_wasm.wasm' files generated.
|
||||
|
||||
The callable JavaScript function is WebPToSDL(), which decodes a raw WebP
|
||||
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 (see
|
||||
below for instructions).
|
||||
|
||||
|
Reference in New Issue
Block a user