-
Notifications
You must be signed in to change notification settings - Fork 0
/
compileOgvDecoderVideoVP9.sh
executable file
·38 lines (36 loc) · 1.21 KB
/
compileOgvDecoderVideoVP9.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
37
38
#!/bin/bash
. ./buildscripts/compile-options.sh
# compile wrapper around libvpx
emcc \
$EMCC_COMMON_OPTIONS \
$EMCC_ASMJS_OPTIONS \
$EMCC_NOTHREAD_OPTIONS \
-s ALLOW_MEMORY_GROWTH=1 \
-s EXPORT_NAME="'OGVDecoderVideoVP9'" \
-s EXPORTED_FUNCTIONS="`< src/js/modules/ogv-decoder-video-exports.json`" \
-Ibuild/js/root/include \
-Lbuild/js/root/lib \
build/js/root/lib/libvpx.so \
--js-library src/js/modules/ogv-decoder-video-callbacks.js \
--pre-js src/js/modules/ogv-module-pre.js \
--post-js src/js/modules/ogv-decoder-video.js \
--js-transform 'node buildscripts/strip-imul.js' \
-D OGV_VP9 \
src/c/ogv-decoder-video-vpx.c \
-o build/ogv-decoder-video-vp9.js \
&& \
emcc \
$EMCC_COMMON_OPTIONS \
$EMCC_WASM_OPTIONS \
$EMCC_NOTHREAD_OPTIONS \
-s EXPORT_NAME="'OGVDecoderVideoVP9W'" \
-s EXPORTED_FUNCTIONS="`< src/js/modules/ogv-decoder-video-exports.json`" \
-Ibuild/js/root/include \
-Lbuild/js/root/lib \
build/js/root/lib/libvpx.so \
--js-library src/js/modules/ogv-decoder-video-callbacks.js \
--pre-js src/js/modules/ogv-module-pre.js \
--post-js src/js/modules/ogv-decoder-video.js \
-D OGV_VP9 \
src/c/ogv-decoder-video-vpx.c \
-o build/ogv-decoder-video-vp9-wasm.js