generate-bindings: use ANDROID_NDK_HOME if set

This commit is contained in:
Robert Bragg
2022-07-06 14:58:29 +01:00
parent a8e8017918
commit eda89d0e15
+3
View File
@@ -1,5 +1,8 @@
#!/bin/sh
if test -z "${ANDROID_NDK_ROOT}"; then
export ANDROID_NDK_ROOT=${ANDROID_NDK_HOME}
fi
SYSROOT="${ANDROID_NDK_ROOT}"/toolchains/llvm/prebuilt/linux-x86_64/sysroot/
if ! test -d $SYSROOT; then
SYSROOT="${ANDROID_NDK_ROOT}"/toolchains/llvm/prebuilt/windows-x86_64/sysroot/