Archived
1
0
This repository has been archived on 2024-10-17. You can view files and clone it, but cannot push or open issues or pull requests.
winamp/Src/external_dependencies/openmpt-trunk/build/auto/dist-js.sh

43 lines
2.0 KiB
Bash
Raw Normal View History

2024-09-24 12:54:57 +00:00
#!/usr/bin/env bash
set -e
mkdir -p bin
rm -rf bin/stage
mkdir -p bin/stage
make CONFIG=emscripten VERBOSE=1 clean-dist
make CONFIG=emscripten EMSCRIPTEN_TARGET=all VERBOSE=1 clean
make CONFIG=emscripten EMSCRIPTEN_TARGET=wasm VERBOSE=1 clean
make CONFIG=emscripten EMSCRIPTEN_TARGET=js VERBOSE=1 clean
mkdir -p bin/stage/all
make CONFIG=emscripten EMSCRIPTEN_TARGET=all VERBOSE=1 clean
make CONFIG=emscripten TEST=1 ONLY_TEST=1 EMSCRIPTEN_TARGET=all VERBOSE=1
make CONFIG=emscripten TEST=1 ONLY_TEST=1 EMSCRIPTEN_TARGET=all VERBOSE=1 check
make CONFIG=emscripten TEST=0 EMSCRIPTEN_TARGET=all VERBOSE=1
cp bin/libopenmpt.js bin/stage/all/
cp bin/libopenmpt.js.mem bin/stage/all/
cp bin/libopenmpt.wasm bin/stage/all/
cp bin/libopenmpt.wasm.js bin/stage/all/
make CONFIG=emscripten EMSCRIPTEN_TARGET=all VERBOSE=1 clean
mkdir -p bin/stage/wasm
make CONFIG=emscripten EMSCRIPTEN_TARGET=wasm VERBOSE=1 clean
make CONFIG=emscripten TEST=1 ONLY_TEST=1 EMSCRIPTEN_TARGET=wasm VERBOSE=1
make CONFIG=emscripten TEST=1 ONLY_TEST=1 EMSCRIPTEN_TARGET=wasm VERBOSE=1 check
make CONFIG=emscripten TEST=0 EMSCRIPTEN_TARGET=wasm VERBOSE=1
cp bin/libopenmpt.js bin/stage/wasm/
cp bin/libopenmpt.wasm bin/stage/wasm/
make CONFIG=emscripten EMSCRIPTEN_TARGET=wasm VERBOSE=1 clean
mkdir -p bin/stage/js
make CONFIG=emscripten EMSCRIPTEN_TARGET=js VERBOSE=1 clean
make CONFIG=emscripten TEST=1 ONLY_TEST=1 EMSCRIPTEN_TARGET=js VERBOSE=1
make CONFIG=emscripten TEST=1 ONLY_TEST=1 EMSCRIPTEN_TARGET=js VERBOSE=1 check
make CONFIG=emscripten TEST=0 EMSCRIPTEN_TARGET=js VERBOSE=1
cp bin/libopenmpt.js bin/stage/js/
cp bin/libopenmpt.js.mem bin/stage/js/
make CONFIG=emscripten EMSCRIPTEN_TARGET=js VERBOSE=1 clean
make CONFIG=emscripten VERBOSE=1 dist-js