Grab Fluidsynth Build - mazmazz/emscripten GitHub Wiki


cd ~/workspace

# Activate EMSDK
git clone https://github.com/emscripten-core/emsdk.git
cd emsdk
./emsdk install latest
./emsdk activate latest
source ./emsdk_env.sh
cd ..

# Clone ports-fluidsynth
git clone https://github.com/mazmazz/emscripten.git
cd emscripten
git checkout ports-fluidsynth

# Trigger MIDI build (will have to Ctrl+C at test finish)
cd tests
python3 runner.py browser.tests_sdl2_mixer_midi

# Package ports cache
cd ~/workspace/emsdk/upstream/emscripten/cache/ports

7z a ports.7z fluidsynth/*
7z a ports.7z sdl2_mixer/*
7z a ports.7z fluidsynth.zip
7z a ports.7z sdl2_mixer.zip

mv -f ports.7z ~/workspace/ports.7z

# Package WASM cache
cd ../wasm

7z a wasm.7z libSDL2_mixer.a
7z a wasm.7z libfluidsynth.a
7z a wasm.7z include/fluidsynth/*
7z a wasm.7z include/include/* # all fluidsynth
7z a wasm.7z include/SDL2/SDL_mixer.h
7z a wasm.7z ports-builds/fluidsynth/*
7z a wasm.7z ports-builds/sdl2_mixer/*

mv -f wasm.7z ~/workspace/wasm.7z