-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy pathbuild_all.sh
executable file
·65 lines (50 loc) · 1.38 KB
/
build_all.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
#!/bin/bash -e
# Check NDK and ANDROID_NDK_HOME env
if [ -z "$NDK" ]; then
if [ -z "$ANDROID_NDK_HOME" ]; then
echo 'No $NDK or $ANDROID_NDK_HOME specified.'
exit 1
else
export NDK="$ANDROID_NDK_HOME"
fi
else
export ANDROID_NDK_HOME="$NDK"
fi
# Clean
rm -rf libs
rm -rf bin
# Build c-ares
cd c-ares
echo "----- Build c-ares (`git describe --tags`) -----"
autoreconf -i
../androidbuildlib out_path=../libs minsdkversion=24 \
target_abis="armeabi-v7a x86 arm64-v8a x86_64" \
silent="$SILENT" custom_silent="--silent" \
configure_params="--disable-shared --enable-static"
cd ..
# Build expat
cd libexpat/expat
echo -e "\n\n----- Build expat (`git describe --tags`) -----"
./buildconf.sh
../../androidbuildlib out_path=../../libs minsdkversion=24 \
target_abis="armeabi-v7a x86 arm64-v8a x86_64" \
silent="$SILENT" \
configure_params="--disable-shared --enable-static"
cd ../..
# Build zlib
cd zlib
echo -e "\n\n----- Build zlib (`git describe --tags`) -----"
../androidbuildlib out_path=../libs minsdkversion=24 \
target_abis="armeabi-v7a x86 arm64-v8a x86_64" \
no_host="true" \
silent="$SILENT" custom_silent="" \
configure_params="--static"
cd ..
# Build openssl
./build_openssl.sh "$(pwd)/libs"
# Build libssh2
./build_libssh2.sh "$(pwd)/libs"
# Build aria2
./build_aria2.sh minsdkversion=24 \
target_abis="armeabi-v7a x86 arm64-v8a x86_64" \
silent="$SILENT"