8000 Build OpenSSL for Android target platforms · dw3/android-database-sqlcipher@dec2793 · GitHub
[go: up one dir, main page]

Skip to content

Commit dec2793

Browse files
Build OpenSSL for Android target platforms
1 parent f238bde commit dec2793

File tree

2 files changed

+15
-6
lines changed

2 files changed

+15
-6
lines changed

Makefile

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
.DEFAULT_GOAL := all
2+
3+
build-openssl-libraries:
4+
./build-openssl-libraries.sh
5+
6+
all:

build-openssl-libraries.sh

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
exit 1
77
fi
88

9+
ANDROID_LIB_ROOT=../android-libs
910
HOST_INFO=`uname -a`
1011
case ${HOST_INFO} in
1112
Darwin*)
@@ -25,8 +26,10 @@
2526
;;
2627
esac
2728

28-
rm ../android-libs/armeabi/libcrypto.a \
29-
../android-libs/x86/libcrypto.a
29+
rm -rf ${ANDROID_LIB_ROOT}
30+
mkdir -p ${ANDROID_LIB_ROOT}/armeabi
31+
mkdir -p ${ANDROID_LIB_ROOT}/armeabi-v7a
32+
mkdir -p ${ANDROID_LIB_ROOT}/x86
3033

3134
git clean -dfx && git checkout -f
3235
./Configure dist
@@ -57,8 +60,8 @@
5760

5861
make clean
5962
make build_crypto
60-
mv libcrypto.a ../android-libs/armeabi/
61-
63+
mv libcrypto.a ${ANDROID_LIB_ROOT}/armeabi/
64+
6265
rm -rf ${ANDROID_TOOLCHAIN_DIR}
6366

6467
#armv7 build
@@ -77,7 +80,7 @@
7780

7881
make clean
7982
make build_crypto
80-
mv libcrypto.a ../android-libs/armeabi-v7a/
83+
mv libcrypto.a ${ANDROID_LIB_ROOT}/armeabi-v7a/
8184

8285
rm -rf ${ANDROID_TOOLCHAIN_DIR}
8386

@@ -97,5 +100,5 @@
97100

98101
make clean
99102
make build_crypto
100-
mv libcrypto.a ../android-libs/x86/
103+
mv libcrypto.a ${ANDROID_LIB_ROOT}/x86/
101104
)

0 commit comments

Comments
 (0)
0