File tree 2 files changed +12
-4
lines changed 2 files changed +12
-4
lines changed Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
2
3
3
TOOLS_ROOT=` pwd`
4
- ARCHS=(" android" " android-armeabi" " android64-aarch64" " android-x86" " android64" " android-mips" " android-mips64" )
5
4
6
5
#
7
6
# Warning !!! Android Build !!!
@@ -15,9 +14,18 @@ ARCHS=("android" "android-armeabi" "android64-aarch64" "android-x86" "android64"
15
14
#
16
15
# So if you not need 64 bit arch api level 16 is better
17
16
#
18
- ANDROID_API=${ANDROID_API:- 16}
17
+ # But but but cURL could not build by android-20 and earlier :-(
18
+ # So you can build openssl with android-16 then build cURL with android-21
19
+ #
20
+ if [ " ${1} " == " cURL" ]; then
21
+ ANDROID_API=${ANDROID_API:- 21}
22
+ else
23
+ ANDROID_API=${ANDROID_API:- 16}
24
+ fi
25
+ ARCHS=(" android" " android-armeabi" " android-x86" " android-mips" )
19
26
ABIS=(" armeabi" " armeabi-v7a" " x86" " mips" )
20
27
# ANDROID_API=${ANDROID_API:-21}
28
+ # ARCHS=("android" "android-armeabi" "android64-aarch64" "android-x86" "android64" "android-mips" "android-mips64")
21
29
# ABIS=("armeabi" "armeabi-v7a" "arm64-v8a" "x86" "x86_64" "mips" "mips64")
22
30
NDK=${ANDROID_NDK}
23
31
Original file line number Diff line number Diff line change 16
16
17
17
set -u
18
18
19
- source ./_shared.sh
19
+ source ./_shared.sh cURL
20
20
21
21
# Setup architectures, library name and other vars + cleanup from previous runs
22
22
TOOLS_ROOT=` pwd`
23
- LIB_NAME=" curl-7.53 .1"
23
+ LIB_NAME=" curl-7.54 .1"
24
24
LIB_DEST_DIR=${TOOLS_ROOT} /libs
25
25
[ -f ${LIB_NAME} .tar.gz ] || wget https://curl.haxx.se/download/${LIB_NAME} .tar.gz
26
26
# Unarchive library, then configure and make for specified architectures
You can’t perform that action at this time.
0 commit comments