From 670d466018fcac00d5f47b0211b09e58e0368e64 Mon Sep 17 00:00:00 2001 From: LoveEevee Date: Tue, 14 Sep 2021 00:33:15 +0300 Subject: [PATCH] Update build docs I recommend using a separate "embuild" directory for wasm builds to make it easier to build for multiple targets --- doc/BUILD.md | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/doc/BUILD.md b/doc/BUILD.md index b8d93f4e..e4bcb919 100644 --- a/doc/BUILD.md +++ b/doc/BUILD.md @@ -369,16 +369,17 @@ Follow emscripten's installation instructions: - https://emscripten.org/docs/getting_started/downloads.html - https://emscripten.org/docs/compiling/Building-Projects.html#building-projects -Then should be buildable on Linux (Windows should be possible too but has some issues at the moment), for example: +Then you should be able to build it on Linux (Windows would be possible too, but it has some issues at the moment), for example: ``` git clone https://github.com/vgmstream/vgmstream cd vgmstream -mkdir -p build && cd build +mkdir -p embuild && cd embuild -# quickest example, some can be enabled -emcmake cmake -DBUILD_STATIC=ON -DUSE_JANSSON=OFF -DUSE_FFMPEG=OFF -DUSE_VORBIS=OFF -DUSE_MPEG=OFF -DUSE_G7221=OFF -DUSE_G719=OFF -DUSE_ATRAC9=OFF -DUSE_SPEEX=OFF -DUSE_MPEG=OFF -S .. -B . +emcmake cmake -S .. -B . emmake make ``` +The output files `vgmstream-cli.wasm` and `vgmstream-cli.js` will be located in the `embuild/cli` directory. + Or with the base makefiles (may need to rename output to .js ATM): ``` git clone https://github.com/vgmstream/vgmstream