未验证 提交 623143cf 编写于 作者: K Kevin Heifner 提交者: GitHub

Merge pull request #2148 from pacificcode/eosio_build_darwin

Eosio build darwin check network response calls
...@@ -84,7 +84,6 @@ ...@@ -84,7 +84,6 @@
fi fi
printf "\tHome Brew installation found.\n\n" printf "\tHome Brew installation found.\n\n"
DCOUNT=0
COUNT=1 COUNT=1
PERMISSION_GETTEXT=0 PERMISSION_GETTEXT=0
DISPLAY="" DISPLAY=""
...@@ -107,7 +106,6 @@ ...@@ -107,7 +106,6 @@
continue continue
fi fi
fi fi
let DCOUNT++
if [ $brewname = "gettext" ]; then if [ $brewname = "gettext" ]; then
PERMISSION_GETTEXT=1 PERMISSION_GETTEXT=1
fi fi
...@@ -128,7 +126,7 @@ ...@@ -128,7 +126,7 @@
printf "\t\t Python3 found\n" printf "\t\t Python3 found\n"
fi fi
if [ $DCOUNT -ne 0 ]; then if [ $COUNT -gt 1 ]; then
printf "\n\tThe following dependencies are required to install EOSIO.\n" printf "\n\tThe following dependencies are required to install EOSIO.\n"
printf "\n\t$DISPLAY\n\n" printf "\n\t$DISPLAY\n\n"
echo "Do you wish to install these packages?" echo "Do you wish to install these packages?"
...@@ -153,14 +151,13 @@ ...@@ -153,14 +151,13 @@
printf "\n\tNo required Home Brew dependencies to install.\n" printf "\n\tNo required Home Brew dependencies to install.\n"
fi fi
printf "\n\tChecking for MongoDB C++ driver\n" printf "\n\tChecking MongoDB C++ driver installation.\n"
# install libmongocxx.dylib
if [ ! -e /usr/local/lib/libmongocxx-static.a ]; then if [ ! -e /usr/local/lib/libmongocxx-static.a ]; then
cd ${TEMP_DIR} cd ${TEMP_DIR}
brew install --force pkgconfig brew install --force pkgconfig
brew unlink pkgconfig && brew link --force pkgconfig brew unlink pkgconfig && brew link --force pkgconfig
curl -LO https://github.com/mongodb/mongo-c-driver/releases/download/1.9.3/mongo-c-driver-1.9.3.tar.gz STATUS=$(curl -LO -w '%{http_code}' --connect-timeout 30 https://github.com/mongodb/mongo-c-driver/releases/download/1.9.3/mongo-c-driver-1.9.3.tar.gz)
if [ $? -ne 0 ]; then if [ $STATUS -ne 200 ]; then
rm -f ${TEMP_DIR}/mongo-c-driver-1.9.3.tar.gz rm -f ${TEMP_DIR}/mongo-c-driver-1.9.3.tar.gz
printf "\tUnable to download MongoDB C driver at this time.\n" printf "\tUnable to download MongoDB C driver at this time.\n"
printf "\tExiting now.\n\n" printf "\tExiting now.\n\n"
...@@ -222,11 +219,16 @@ ...@@ -222,11 +219,16 @@
printf "\tMongo C++ driver found at /usr/local/lib/libmongocxx-static.a.\n" printf "\tMongo C++ driver found at /usr/local/lib/libmongocxx-static.a.\n"
fi fi
printf "\n\tChecking for secp256k1-zkp\n" printf "\n\tChecking secp256k1-zkp installation.\n"
# install secp256k1-zkp (Cryptonomex branch) # install secp256k1-zkp (Cryptonomex branch)
if [ ! -e /usr/local/lib/libsecp256k1.a ]; then if [ ! -e /usr/local/lib/libsecp256k1.a ]; then
cd ${TEMP_DIR} cd ${TEMP_DIR}
git clone https://github.com/cryptonomex/secp256k1-zkp.git git clone https://github.com/cryptonomex/secp256k1-zkp.git
if [ $? -ne 0 ]; then
printf "\tUnable to clone repo secp256k1-zkp @ https://github.com/cryptonomex/secp256k1-zkp.git.\n"
printf "\tExiting now.\n\n"
exit;
fi
cd secp256k1-zkp cd secp256k1-zkp
./autogen.sh ./autogen.sh
if [ $? -ne 0 ]; then if [ $? -ne 0 ]; then
...@@ -247,15 +249,24 @@ ...@@ -247,15 +249,24 @@
printf "\tsecp256k1 found at /usr/local/lib/\n" printf "\tsecp256k1 found at /usr/local/lib/\n"
fi fi
printf "\n\tChecking for WASM\n" printf "\n\tChecking LLVM with WASM support.\n"
if [ ! -d /usr/local/wasm/bin ]; then if [ ! -d /usr/local/wasm/bin ]; then
# Build LLVM and clang for WASM:
cd ${TEMP_DIR} cd ${TEMP_DIR}
mkdir wasm-compiler mkdir wasm-compiler
cd wasm-compiler cd wasm-compiler
git clone --depth 1 --single-branch --branch release_40 https://github.com/llvm-mirror/llvm.git git clone --depth 1 --single-branch --branch release_40 https://github.com/llvm-mirror/llvm.git
if [ $? -ne 0 ]; then
printf "\tUnable to clone llvm repo @ https://github.com/llvm-mirror/llvm.git.\n"
printf "\tExiting now.\n\n"
exit;
fi
cd llvm/tools cd llvm/tools
git clone --depth 1 --single-branch --branch release_40 https://github.com/llvm-mirror/clang.git git clone --depth 1 --single-branch --branch release_40 https://github.com/llvm-mirror/clang.git
if [ $? -ne 0 ]; then
printf "\tUnable to clone clang repo @ https://github.com/llvm-mirror/clang.git.\n"
printf "\tExiting now.\n\n"
exit;
fi
cd .. cd ..
mkdir build mkdir build
cd build cd build
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册