forked from cornerstonejs/openjpeg
-
Notifications
You must be signed in to change notification settings - Fork 0
/
emccbuild.sh
executable file
·36 lines (36 loc) · 1.08 KB
/
emccbuild.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
26
27
28
29
30
31
32
33
34
35
36
#!/bin/bash
mkdir build
emcc bin/libopenjpeg-js.bc -o \
build/openJPEG-FixedMemory-browser.js \
--memory-init-file 0 \
-s EXPORTED_FUNCTIONS="['_jp2_decode']" \
-s TOTAL_MEMORY=600000000 \
-s NO_FILESYSTEM=1 \
-s EXPORT_NAME="'OpenJPEG'" \
-s MODULARIZE=1 \
-O3
emcc bin/libopenjpeg-js.bc -o \
build/openJPEG-DynamicMemory-browser.js \
--memory-init-file 0 \
-s EXPORTED_FUNCTIONS="['_jp2_decode']" \
-s ALLOW_MEMORY_GROWTH=1 \
-s NO_FILESYSTEM=1 \
-s EXPORT_NAME="'OpenJPEG'" \
-s MODULARIZE=1 \
-O3
emcc bin/libopenjpeg-js.bc \
-o build/openJPEG-FixedMemory-commonJS.js \
--memory-init-file 0 \
-s EXPORTED_FUNCTIONS="['_jp2_decode']" \
-s TOTAL_MEMORY=600000000 \
-s NO_FILESYSTEM=1 \
-s DISABLE_EXCEPTION_CATCHING=0 \
-O3
emcc bin/libopenjpeg-js.bc \
-o build/openJPEG-DynamicMemory-commonJS.js \
--memory-init-file 0 \
-s EXPORTED_FUNCTIONS="['_jp2_decode']" \
-s ALLOW_MEMORY_GROWTH=1 \
-s NO_FILESYSTEM=1 \
-s DISABLE_EXCEPTION_CATCHING=0 \
-O3