forked from cory/tildefriends
This builds for 32-bit android. Untested.
git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@4481 ed5197a5-7fde-0310-b194-c3ffbd925b24
This commit is contained in:
@ -7,7 +7,8 @@ API_LEVEL=28
|
||||
|
||||
BUILD_DIR=out/openssl_android_build
|
||||
|
||||
BUILD_TARGETS="x86_64 arm64-v8a"
|
||||
#BUILD_TARGETS="x86_64 arm64-v8a armeabi-v7a"
|
||||
BUILD_TARGETS="x86"
|
||||
|
||||
rm -rfv openssl-${OPENSSL_VERSION}
|
||||
|
||||
@ -43,23 +44,16 @@ do
|
||||
cd $WORK_DIR || exit 128
|
||||
|
||||
case $build_target in
|
||||
armeabi)
|
||||
TRIBLE="arm-linux-androideabi"
|
||||
OPTIONS="-mthumb -fPIC -latomic -D__ANDROID_API__=$API_LEVEL"
|
||||
DESTDIR="/tmp/$BUILD_DIR/armeabi"
|
||||
SSL_TARGET="android-arm"
|
||||
CC=clang
|
||||
;;
|
||||
armeabi-v7a)
|
||||
TRIBLE="arm-linux-androideabi"
|
||||
OPTIONS="--target=armv7a-linux-androideabi -Wl,--fix-cortex-a8 -fPIC -D__ANDROID_MIN_SDK_VERSION__=$API_LEVEL "
|
||||
OPTIONS="--target=armv7a-linux-androideabi -Wl,--fix-cortex-a8 -fPIC -D__ANDROID_API__=$API_LEVEL -Wno-macro-redefined"
|
||||
DESTDIR="/tmp/$BUILD_DIR/armeabi-v7a"
|
||||
SSL_TARGET="android-arm"
|
||||
CC=clang
|
||||
;;
|
||||
x86)
|
||||
TRIBLE="i686-linux-android"
|
||||
OPTIONS="-fPIC -D__ANDROID_MIN_SDK_VERSION__=${API_LEVEL}"
|
||||
OPTIONS="-fPIC -D__ANDROID_API__=${API_LEVEL} -Wno-macro-redefined"
|
||||
DESTDIR="/tmp/$BUILD_DIR/x86"
|
||||
SSL_TARGET="android-x86"
|
||||
CC=clang
|
||||
|
Reference in New Issue
Block a user