not yet working coroutines

This commit is contained in:
ading2210 2024-03-19 13:45:21 -04:00
parent 2a072ecee0
commit e5118c9c2e
8 changed files with 102 additions and 11 deletions

View file

@ -11,6 +11,7 @@ CURL_PREFIX=$(realpath build/curl-wasm)
ZLIB_PREFIX=$(realpath build/zlib-wasm)
BROTLI_PREFIX=$(realpath build/brotli-wasm)
NGHTTP2_PREFIX=$(realpath build/nghttp2-wasm)
MINICORO_PREFIX=$(realpath build/minicoro-wasm)
if [ ! -d $OPENSSL_PREFIX ]; then
tools/openssl.sh
@ -30,9 +31,13 @@ fi
if [ ! -d $CURL_PREFIX ]; then
tools/curl.sh
fi
if [ ! -d $MINICORO_PREFIX ]; then
tools/minicoro.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 $NGHTTP2_PREFIX/* $CURL_PREFIX
cp -r $NGHTTP2_PREFIX/* $CURL_PREFIX
cp -r $MINICORO_PREFIX/* $CURL_PREFIX

6
client/tools/minicoro.sh Executable file
View file

@ -0,0 +1,6 @@
#!/bin/bash
#download the minicoro library
mkdir -p build/minicoro-wasm/include/
wget "https://raw.githubusercontent.com/edubart/minicoro/main/minicoro.h" -O build/minicoro-wasm/include/minicoro.h