Skip to content

Commit

Permalink
Big update!
Browse files Browse the repository at this point in the history
  • Loading branch information
as-com committed Apr 3, 2018
1 parent 962c52d commit ed93c48
Show file tree
Hide file tree
Showing 494 changed files with 234 additions and 206,951 deletions.
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[submodule "deps/mozjpeg"]
path = deps/mozjpeg
url = https://github.com/mozilla/mozjpeg.git
4 changes: 3 additions & 1 deletion build-js.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
#!/bin/sh
cd deps/mozjpeg
autoreconf -fiv
emconfigure ./configure --without-simd --without-turbojpeg CFLAGS="-O3"
emmake make
emmake make clean
emmake make -j4
cp .libs/cjpeg ../../cjpeg.bc
cd ../..
emcc -O3 --closure 1 --pre-js pre.js --post-js post.js -s "EXPORTED_RUNTIME_METHODS=[]" -s ELIMINATE_DUPLICATE_FUNCTIONS=1 -s ALLOW_MEMORY_GROWTH=1 --memory-init-file 0 --js-transform "node output-cleaner.js" cjpeg.bc -o lib/cjpeg.js -L'./deps/mozjpeg/.libs' -ljpeg
1 change: 1 addition & 0 deletions deps/mozjpeg
Submodule mozjpeg added at b85de6
Loading

0 comments on commit ed93c48

Please sign in to comment.