add gzip and brotli support

This commit is contained in:
ading2210 2024-01-08 22:09:20 -05:00
parent 7472c899db
commit e4c064401e
6 changed files with 69 additions and 7 deletions

View file

@ -7,6 +7,8 @@ mkdir -p build
OPENSSL_PREFIX=$(realpath build/openssl-wasm)
CJSON_PREFIX=$(realpath build/cjson-wasm)
CURL_PREFIX=$(realpath build/curl-wasm)
ZLIB_PREFIX=$(realpath build/zlib-wasm)
BROTLI_PREFIX=$(realpath build/brotli-wasm)
if [ ! -d $OPENSSL_PREFIX ]; then
tools/openssl.sh
@ -14,9 +16,17 @@ fi
if [ ! -d $CJSON_PREFIX ]; then
tools/cjson.sh
fi
if [ ! -d $ZLIB_PREFIX ]; then
tools/zlib.sh
fi
if [ ! -d $BROTLI_PREFIX ]; then
tools/brotli.sh
fi
if [ ! -d $CURL_PREFIX ]; then
tools/curl.sh
fi
cp -r $OPENSSL_PREFIX/* $CURL_PREFIX
cp -r $CJSON_PREFIX/* $CURL_PREFIX
cp -r $CJSON_PREFIX/* $CURL_PREFIX
cp -r $ZLIB_PREFIX/* $CURL_PREFIX
cp -r $BROTLI_PREFIX/* $CURL_PREFIX