mirror of
https://github.com/ading2210/libcurl.js.git
synced 2025-05-12 14:00:01 -04:00
fix build scripts
This commit is contained in:
parent
dc61ffb7ba
commit
2a511ff6e9
3 changed files with 13 additions and 2 deletions
|
@ -1,5 +1,7 @@
|
|||
#!/bin/bash
|
||||
|
||||
set -e
|
||||
|
||||
INCLUDE_DIR="build/curl-wasm/include/"
|
||||
LIB_DIR="build/curl-wasm/lib/"
|
||||
CACERT_FILE="cacert.pem"
|
||||
|
@ -15,6 +17,7 @@ if [ ! -f $CACERT_FILE ]; then
|
|||
fi
|
||||
|
||||
if [ ! -d $INCLUDE_DIR ]; then
|
||||
mkdir -p build
|
||||
tools/openssl.sh
|
||||
tools/curl.sh
|
||||
fi
|
||||
|
|
|
@ -2,11 +2,15 @@
|
|||
|
||||
#compile openssl for use with emscripten
|
||||
|
||||
set -x
|
||||
set -e
|
||||
|
||||
CORE_COUNT=$(nproc --all)
|
||||
PREFIX=$(realpath build/curl-wasm)
|
||||
OPENSSL_PREFIX=$(realpath build/openssl-wasm)
|
||||
mkdir -p $PREFIX
|
||||
|
||||
cd build
|
||||
rm -rf curl
|
||||
git clone -b master --depth=1 https://github.com/curl/curl
|
||||
cd curl
|
||||
|
@ -23,4 +27,4 @@ cp -r include/curl $PREFIX/include
|
|||
cp lib/.libs/libcurl.a $PREFIX/lib
|
||||
cp -r $OPENSSL_PREFIX/* $PREFIX
|
||||
|
||||
cd ..
|
||||
cd ../../
|
|
@ -2,10 +2,14 @@
|
|||
|
||||
#compile openssl for use with emscripten
|
||||
|
||||
set -x
|
||||
set -e
|
||||
|
||||
CORE_COUNT=$(nproc --all)
|
||||
PREFIX=$(realpath build/openssl-wasm)
|
||||
mkdir -p $PREFIX
|
||||
|
||||
cd build
|
||||
rm -rf openssl
|
||||
git clone -b master --depth=1 https://github.com/openssl/openssl
|
||||
cd openssl
|
||||
|
@ -21,4 +25,4 @@ mkdir -p $PREFIX/lib
|
|||
cp -r include/openssl $PREFIX/include
|
||||
cp libcrypto.a libssl.a $PREFIX/lib
|
||||
|
||||
cd ..
|
||||
cd ../../
|
Loading…
Add table
Add a link
Reference in a new issue