1#!/usr/bin/env bash 2################################################################################ 3# THIS FILE IS 100% GENERATED BY ZPROJECT; DO NOT EDIT EXCEPT EXPERIMENTALLY # 4# Read the zproject/README.md for information about making permanent changes. # 5################################################################################ 6 7export NDK_VERSION=android-ndk-r21d 8export ANDROID_NDK_ROOT="/tmp/${NDK_VERSION}" 9 10case $(uname | tr '[:upper:]' '[:lower:]') in 11 linux*) 12 HOST_PLATFORM=linux-x86_64 13 ;; 14 darwin*) 15 HOST_PLATFORM=darwin-x86_64 16 ;; 17 *) 18 echo "Unsupported platform" 19 exit 1 20 ;; 21esac 22 23if [ ! -d "${ANDROID_NDK_ROOT}" ]; then 24 export FILENAME=$NDK_VERSION-$HOST_PLATFORM.zip 25 26 (cd '/tmp' \ 27 && wget http://dl.google.com/android/repository/$FILENAME -O $FILENAME &> /dev/null \ 28 && unzip -q $FILENAME) || exit 1 29 unset FILENAME 30fi 31 32rm -rf /tmp/tmp-deps 33mkdir -p /tmp/tmp-deps 34 35export LIBZMQ_ROOT="/tmp/tmp-deps/libzmq" 36git clone --quiet --depth 1 https://github.com/zeromq/libzmq.git $LIBZMQ_ROOT 37 38export CZMQ_ROOT="/tmp/tmp-deps/czmq" 39git clone --quiet --depth 1 https://github.com/zeromq/czmq.git $CZMQ_ROOT 40 41./build.sh "arm" 42./build.sh "arm64" 43./build.sh "x86" 44./build.sh "x86_64" 45 46################################################################################ 47# THIS FILE IS 100% GENERATED BY ZPROJECT; DO NOT EDIT EXCEPT EXPERIMENTALLY # 48# Read the zproject/README.md for information about making permanent changes. # 49################################################################################ 50