-
-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathbuild.sh
25 lines (25 loc) · 879 Bytes
/
build.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
set -eu -o pipefail
mkdir -p dist
/emsdk/node/*/bin/node /emsdk/upstream/emscripten/node_modules/.bin/google-closure-compiler \
--language_in ECMASCRIPT_NEXT \
--language_out ECMASCRIPT_2018 \
--js_output_file dist/rnnoise-runtime.js \
src/runtime.js
/emsdk/node/*/bin/node /emsdk/upstream/emscripten/node_modules/.bin/google-closure-compiler \
--language_in ECMASCRIPT_NEXT \
--language_out ECMASCRIPT_2018 \
--js_output_file dist/rnnoise-processor.js \
src/processor.js
emcc \
-s ENVIRONMENT=worker \
-s TOTAL_STACK=49152 -s TOTAL_MEMORY=327680 \
-g0 -O3 --no-entry -Wno-null-dereference \
-o dist/rnnoise-processor.wasm \
-Irnnoise/include \
rnnoise/src/celt_lpc.c \
rnnoise/src/denoise.c \
rnnoise/src/kiss_fft.c \
rnnoise/src/pitch.c \
rnnoise/src/rnn.c \
rnnoise/src/rnn_data.c \
src/worklet.c