0
0
mirror of https://github.com/OpenVPN/openvpn3.git synced 2024-09-20 12:12:15 +02:00

Android build scripts:

* Add build-all
* Fixed build-minicrypto
This commit is contained in:
James Yonan 2012-10-07 09:14:00 +00:00
parent 4aa8345036
commit 01c91a46cd
2 changed files with 19 additions and 4 deletions

View File

@ -14,10 +14,12 @@ fi
. $O3/lib-versions
# Build ASM files with clang 3.0
GCC_AS_CMD=$HOME/clang3/clang
if ! [ -f "$GCC_AS_CMD" ]; then
echo "clang 3.0 binary must be present in $GCC_AS_CMD to assemble ARM crypto algorithms"
exit 1
if [ "$APPLE_FAMILY" = "1" ]; then
GCC_AS_CMD=$HOME/clang3/clang
if ! [ -f "$GCC_AS_CMD" ]; then
echo "clang 3.0 binary must be present in $GCC_AS_CMD to assemble ARM crypto algorithms"
exit 1
fi
fi
DEST=minicrypto/minicrypto-$PLATFORM
@ -25,6 +27,7 @@ DEST=minicrypto/minicrypto-$PLATFORM
GLOBAL_COMPILE_FLAGS="$PLATFORM_FLAGS $OTHER_COMPILER_FLAGS $LIB_OPT_LEVEL $LIB_FPIC -DSHA1_ASM -DBF_PTR -DOPENSSL_VERSION_PTEXT= -D__LP32__"
[ -z "$GCC_CMD" ] && GCC_CMD=gcc
[ -z "$GCC_AS_CMD" ] && GCC_AS_CMD="$GCC_CMD"
[ -z "$AR_CMD" ] && AR_CMD=ar
# the directory where this script lives
H=$O3/minicrypto

12
scripts/android/build-all Executable file
View File

@ -0,0 +1,12 @@
#!/usr/bin/env bash
set -e
echo "******* BOOST"
$O3/scripts/android/build-boost
echo "******* MINICRYPTO"
$O3/scripts/android/build-minicrypto
echo "******* POLARSSL"
$O3/scripts/android/build-polarssl
echo "******* LZO"
$O3/scripts/android/build-lzo
echo "******* SNAPPY"
$O3/scripts/android/build-snappy