mirror of
https://github.com/ading2210/libcurl.js.git
synced 2025-05-12 22:10:01 -04:00
add gzip and brotli support
This commit is contained in:
parent
7472c899db
commit
e4c064401e
6 changed files with 69 additions and 7 deletions
25
client/tools/zlib.sh
Executable file
25
client/tools/zlib.sh
Executable file
|
@ -0,0 +1,25 @@
|
|||
#!/bin/bash
|
||||
|
||||
#compile zlib for use with emscripten
|
||||
|
||||
set -x
|
||||
set -e
|
||||
|
||||
CORE_COUNT=$(nproc --all)
|
||||
PREFIX=$(realpath build/zlib-wasm)
|
||||
|
||||
cd build
|
||||
rm -rf zlib
|
||||
git clone -b master --depth=1 https://github.com/madler/zlib
|
||||
cd zlib
|
||||
|
||||
emconfigure ./configure --static
|
||||
emmake make -j$CORE_COUNT
|
||||
|
||||
rm -rf $PREFIX
|
||||
mkdir -p $PREFIX/include
|
||||
mkdir -p $PREFIX/lib
|
||||
cp -r *.h $PREFIX/include
|
||||
cp -r *.a $PREFIX/lib
|
||||
|
||||
cd ../../
|
Loading…
Add table
Add a link
Reference in a new issue