support http/2

This commit is contained in:
ading2210 2024-01-17 17:46:08 -05:00
parent 8bcfc2157c
commit baab0aea8f
6 changed files with 36 additions and 3 deletions

View file

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