Skip to content

Commit eda89d0

Browse files
committed
generate-bindings: use ANDROID_NDK_HOME if set
1 parent a8e8017 commit eda89d0

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

android-activity/generate-bindings.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
#!/bin/sh
22

3+
if test -z "${ANDROID_NDK_ROOT}"; then
4+
export ANDROID_NDK_ROOT=${ANDROID_NDK_HOME}
5+
fi
36
SYSROOT="${ANDROID_NDK_ROOT}"/toolchains/llvm/prebuilt/linux-x86_64/sysroot/
47
if ! test -d $SYSROOT; then
58
SYSROOT="${ANDROID_NDK_ROOT}"/toolchains/llvm/prebuilt/windows-x86_64/sysroot/

0 commit comments

Comments
 (0)