Skip to content

Commit 1602c26

Browse files
committed
Merge pull request kivy#345 from r1chardj0n3s/check-ndk-location
check the calculated NDK platform path for validity
2 parents cb5ffae + ca58a2c commit 1602c26

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

distribute.sh

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -341,6 +341,14 @@ function run_prepare() {
341341
export ARCH="armeabi"
342342
#export ARCH="armeabi-v7a" # not tested yet.
343343

344+
info "Check NDK location"
345+
if [ ! -d "$NDKPLATFORM" ]; then
346+
error "Invalid NDK platform"
347+
error "Looking in $NDKPLATFORM"
348+
error "Using ANDROIDNDK=$ANDROIDNDK and ANDROIDAPI=$ANDROIDAPI"
349+
exit -1
350+
fi
351+
344352
info "Check mandatory tools"
345353
# ensure that some tools are existing
346354
for tool in tar bzip2 unzip make gcc g++; do

0 commit comments

Comments
 (0)