This document explains how to build the project.
- CMake 3.16 or higher
- GNU Make
- Python 3
- Task 3.40.0 or higher
Initialize and update submodules:
git submodule update --init --recursiveTo build the zstd-wasm library:
task zstd-wasmThe task first runs :deps:download-zstd to fetch the latest Zstandard source code, then executes
:deps:install-zstd-single-file to produce the single-file library. Finally, it builds the CMake
project, which uses Emscripten to expose the bindings to JavaScript.
To clean the build:
task clean-zstd-wasmThe build system generates separate binaries for different JavaScript environments:
- Node.js
- Web Workers