Skip to content

Commit

Permalink
Include release distribution of mozjpeg, add compile script
Browse files Browse the repository at this point in the history
  • Loading branch information
as-com committed Jun 19, 2016
1 parent 49c3dd9 commit 6eaf391
Show file tree
Hide file tree
Showing 494 changed files with 206,383 additions and 5 deletions.
9 changes: 8 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ jspm_packages
*.lo
*.o
*.obj
*.bc

# Precompiled Headers
*.gch
Expand All @@ -70,8 +71,14 @@ jspm_packages
# Executables
*.exe
*.out
*.out.js
*.out.js.mem
*.app

mozjpeg/.libs
mozjpeg/.deps



### SublimeText ###
# cache files for sublime text
Expand Down Expand Up @@ -100,4 +107,4 @@ bh_unicode_properties.cache

# Sublime-github package stores a github token in this file
# https://packagecontrol.io/packages/sublime-github
GitHub.sublime-settings
GitHub.sublime-settings
3 changes: 0 additions & 3 deletions .gitmodules

This file was deleted.

7 changes: 7 additions & 0 deletions build-js.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/bin/sh
cd mozjpeg
emconfigure ./configure --without-simd --without-turbojpeg CFLAGS="-O3"
emmake make
cp .libs/cjpeg ../cjpeg.bc
cd ..
emcc -O3 --pre-js src/pre.js --post-js src/post.js --memory-init-file 0 cjpeg.bc -o src/cjpeg.js -L'./mozjpeg/.libs' -ljpeg
1 change: 0 additions & 1 deletion mozjpeg
Submodule mozjpeg deleted from 519865
Loading

0 comments on commit 6eaf391

Please sign in to comment.