Skip to content

Commit

Permalink
WebAssembly version
Browse files Browse the repository at this point in the history
Resolve bgrins#43
  • Loading branch information
jonasof committed May 2, 2017
1 parent 4c2ba59 commit cd5de5f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions build/build_lgpl.sh
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,11 @@ rm *.bc
cp lib/libz.a libz.bc
cp ../ffmpeg/ffmpeg ffmpeg.bc

emcc -s OUTLINING_LIMIT=100000 -v -s TOTAL_MEMORY=33554432 -O2 ffmpeg.bc -o ../ffmpeg.js --pre-js ../ffmpeg_pre.js --post-js ../ffmpeg_post.js
emcc -v -s TOTAL_MEMORY=33554432 -Os ffmpeg.bc -o ../ffmpeg.js --pre-js ../ffmpeg_pre.js --post-js ../ffmpeg_post.js -s WASM=1 -s "BINARYEN_METHOD='native-wasm'" -s ALLOW_MEMORY_GROWTH=1

cd ..

cp ffmpeg.js* ../demo

cp ffmpeg.wasm* ../demo

echo "Finished Build"

0 comments on commit cd5de5f

Please sign in to comment.