Skip to content

Commit

Permalink
Merge pull request #455 from ccrma/nshaheed-patch-2
Browse files Browse the repository at this point in the history
Add `make web` instructions to README
  • Loading branch information
gewang authored Aug 12, 2024
2 parents a4bea71 + 858a9c3 commit 7810365
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,20 @@ This process should build a `chuck` executable in `chuck/src`.
### Windows
To build chuck using Visual Studio (2019 or later recommended), navigate to `chuck\src\visual-studio`, open `chuck.sln`, and build.

### Web
To compile ChucK to WebAssembly (WASM):
* install the [Emscripten SDK](https://emscripten.org/docs/getting_started/downloads.html) (and activate the SDK version, as instructed in the link)
* before building, enable Emscripten paths and environment variables (e.g., from the `emsdk` directory):
```
source ./emsdk_env.sh
```
* run `make web`:
```
cd chuck/src
make web
```
This should create `webchuck.wasm` and `webchuck.js` in the `chuck/src/host-web/webchuck/js` directory.


## Contributing to ChucK
Here are the source repositories maintained by the ChucK Team. _Developers wanted!_
Expand Down

0 comments on commit 7810365

Please sign in to comment.