Skip to content

Commit

Permalink
Break on missing NDK (#2554)
Browse files Browse the repository at this point in the history
  • Loading branch information
bruno-garcia authored Aug 21, 2023
1 parent 8bbe7d5 commit c68d685
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/sentrysupplemental/build.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/bin/bash
set -e

# this should point at the Android SDK root directory
: ${ANDROID_HOME:=~/Library/Android/sdk}
Expand All @@ -15,7 +16,8 @@ find obj bin -mindepth 1 -delete

# use the latest NDK installed, if not already specified
: ${ANDROID_NDK:=$(dirname $(find $ANDROID_HOME/ndk/*/build -maxdepth 0 | sort -V | tail -1))}
echo "Using Android NDK at $ANDROID_NDK"
[ -z "$ANDROID_NDK" ] || [ ! -d $ANDROID_NDK ] && echo "NDK not installed." && exit 1
echo "Using Android NDK at '$ANDROID_NDK'"

# compile for each ABI
cd obj
Expand Down

0 comments on commit c68d685

Please sign in to comment.