mirror of
https://github.com/deneraraujo/OpenVPNAdapter.git
synced 2026-04-24 00:00:05 +08:00
Merge commit '82fea30fcce1d169de7ec42be84d079e0899519c' into feature/update-dependenies
This commit is contained in:
@@ -1,12 +1,36 @@
|
||||
#!/usr/bin/env bash
|
||||
# Build Android dependencies (run after build-toolchain)
|
||||
# Build the entire core package as required by Android App
|
||||
set -e
|
||||
if [ -z "$O3" ]; then
|
||||
echo O3 var must point to ovpn3 tree ; exit 1
|
||||
echo O3 var must point to ovpn3 tree
|
||||
exit 1
|
||||
fi
|
||||
export DEP_DIR=${DEP_DIR:-$HOME/src/android}
|
||||
|
||||
[ -z "$ECHO" ] && ECHO=0
|
||||
|
||||
if [ "$ECHO" -eq 0 ]; then
|
||||
exec > $O3/android_build.log
|
||||
exec 2>&1
|
||||
fi
|
||||
|
||||
[ -z "$DEP_DIR" ] && export DEP_DIR=${O3}/deps
|
||||
[ -z "$DL" ] && export DL=~/dl
|
||||
|
||||
mkdir -p $DEP_DIR
|
||||
mkdir -p $DL
|
||||
|
||||
export NO_MOD_PATH=1
|
||||
. $O3/core/vars/android-sdk-path
|
||||
|
||||
echo BUILD ANDROID SDK
|
||||
$O3/core/scripts/android/build-sdk
|
||||
|
||||
echo BUILD TOOLCHAIN
|
||||
$O3/core/scripts/android/build-toolchain
|
||||
|
||||
echo BUILD DEPS
|
||||
cd $DEP_DIR
|
||||
rm -rf asio* boost* lz4* lzo* minicrypto openssl* polarssl* snappy* mbedtls*
|
||||
rm -rf asio* lz4* mbedtls* #lzo* boost* minicrypto openssl* polarssl* snappy*
|
||||
echo "******* ASIO"
|
||||
$O3/core/deps/asio/build-asio
|
||||
echo "******* MBEDTLS"
|
||||
@@ -24,3 +48,8 @@ $O3/core/scripts/android/build-lz4
|
||||
#$O3/core/scripts/android/build-lzo
|
||||
#echo "******* SNAPPY"
|
||||
#$O3/core/scripts/android/build-snappy
|
||||
|
||||
echo BUILD CORE LIBRARY
|
||||
$O3/core/javacli/build-android
|
||||
|
||||
echo DONE.
|
||||
|
||||
Reference in New Issue
Block a user