Skip to content

Commit ca58a2c

Browse files
committed
check the calculated NDK platform path for validity
1 parent 9797fe6 commit ca58a2c

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)