Skip to content

Commit 0fb77df

Browse files
committed
Merge pull request kivy#32 from Ghost-BR/master
Working with NDK 7*
2 parents 83037be + f355f75 commit 0fb77df

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

distribute.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ function push_arm() {
9999

100100
# this must be something depending of the API level of Android
101101
export PATH="$ANDROIDNDK/toolchains/arm-eabi-4.4.0/prebuilt/linux-x86/bin/:$ANDROIDNDK:$ANDROIDSDK/tools:$PATH"
102-
if [ "X$ANDROIDNDKVER" == "Xr7" ]; then
102+
if [ "X${ANDROIDNDKVER:0:2}" == "Xr7" ]; then
103103
export TOOLCHAIN_PREFIX=arm-linux-androideabi
104104
export TOOLCHAIN_VERSION=4.4.3
105105
elif [ "X$ANDROIDNDKVER" == "Xr5b" ]; then

src/build.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -242,8 +242,9 @@ def make_package(args):
242242
args=args)
243243

244244
# Update the project to a recent version.
245+
android_api = 'android-%s' % os.environ.get('ANDROIDAPI', '8')
245246
try:
246-
subprocess.call([ANDROID, 'update', 'project', '-p', '.', '-t', 'android-8'])
247+
subprocess.call([ANDROID, 'update', 'project', '-p', '.', '-t', android_api])
247248
except (OSError, IOError):
248249
print 'An error occured while calling', ANDROID, 'update'
249250
print 'Your PATH must include android tools.'

0 commit comments

Comments
 (0)