mirror of
https://github.com/ading2210/libcurl.js.git
synced 2025-05-12 05:50:01 -04:00
38 lines
No EOL
809 B
Bash
Executable file
38 lines
No EOL
809 B
Bash
Executable file
#!/bin/bash
|
|
|
|
#build all deps
|
|
|
|
set -e
|
|
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)
|
|
NGHTTP2_PREFIX=$(realpath build/nghttp2-wasm)
|
|
|
|
if [ ! -d $OPENSSL_PREFIX ]; then
|
|
tools/openssl.sh
|
|
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 $NGHTTP2_PREFIX ]; then
|
|
tools/nghttp2.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 $ZLIB_PREFIX/* $CURL_PREFIX
|
|
cp -r $BROTLI_PREFIX/* $CURL_PREFIX
|
|
cp -r $NGHTTP2_PREFIX/* $CURL_PREFIX |