OsmAnd/OsmAnd/old-ndk-build.sh

23 lines
611 B
Bash
Raw Normal View History

2013-08-04 21:26:23 +02:00
#!/bin/bash
SCRIPT_LOC="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
NAME=$(basename $(dirname "${BASH_SOURCE[0]}") )
if [ -d "$ANDROID_HOME" ]; then
# for backwards compatbility
2018-09-30 20:50:14 +02:00
export ANDROID_SDK_ROOT=$ANDROID_HOME
2013-08-04 21:26:23 +02:00
fi
2018-09-30 20:50:14 +02:00
if [ -d "$ANDROID_NDK" ]; then
export ANDROID_NDK_ROOT=$ANDROID_NDK
fi
if [ ! -d "$ANDROID_SDK_ROOT" ]; then
echo "ANDROID_SDK is not set"
exit
fi
if [ ! -d "$ANDROID_NDK_ROOT" ]; then
2013-08-04 21:26:23 +02:00
echo "ANDROID_NDK is not set"
exit
fi
2018-07-26 00:22:07 +02:00
export BUILD_ONLY_OLD_LIB=1
2014-12-21 23:34:46 +01:00
"$SCRIPT_LOC/../../core-legacy/externals/configure.sh"
2018-09-30 20:50:14 +02:00
(cd "$SCRIPT_LOC" && "$ANDROID_NDK_ROOT/ndk-build" -j2)