mirror of
https://github.com/jedisct1/libsodium.git
synced 2024-12-24 12:36:01 -07:00
Check prerequisites in android.sh
This commit is contained in:
parent
0ad0f3e1ce
commit
b01ebe6caf
@ -1,10 +1,30 @@
|
||||
#! /bin/sh
|
||||
|
||||
# Note that this script requires droid-wrapper
|
||||
if [ x`which droid-gcc` = x ]; then
|
||||
echo "This build script requires droid-wrapper."
|
||||
echo https://github.com/tmurakam/droid-wrapper
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if [ -z "$NDK_ROOT" ]; then
|
||||
echo "You should probably set NDK_ROOT to the directory containing"
|
||||
echo "the Android NDK"
|
||||
fi
|
||||
|
||||
if [ ! -f ./configure ]; then
|
||||
echo "Can't find ./configure. Wrong directory or haven't run autogen.sh?"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
export CFLAGS="-Os -mthumb"
|
||||
export DROID_HOST=darwin-x86
|
||||
if uname -a | grep -q -i linux; then
|
||||
export DROID_HOST=linux-x86
|
||||
fi
|
||||
export LDFLAGS="-mthumb"
|
||||
export NDK_PLATFORM=9
|
||||
export NDK_ROOT=/usr/local/Cellar/android-ndk/r8e
|
||||
export NDK_ROOT=${NDK_ROOT:-/usr/local/Cellar/android-ndk/r8e}
|
||||
export NDK_ANDROID_SOURCES="${NDK_ROOT}/sources/android"
|
||||
export TARGET_TOOLCHAIN_VERSION=4.4.3
|
||||
export TARGET=arm-linux-androideabi
|
||||
|
Loading…
Reference in New Issue
Block a user