Skip to content
This repository has been archived by the owner on Jan 4, 2024. It is now read-only.

Commit

Permalink
Support Windows and Mac NDK
Browse files Browse the repository at this point in the history
windows can use msys2 or cygwin
  • Loading branch information
SquallATF committed May 11, 2021
1 parent f3dba1e commit 3d817c3
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions bin/init/env.sh
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,13 @@ if [ $(command -v go) ]; then
export PATH=$PATH:$(go env GOPATH)/bin
fi

DEPS=$ANDROID_NDK_HOME/toolchains/llvm/prebuilt/linux-x86_64/bin
_HOST="linux"
case "$OSTYPE" in
darwin*) _HOST="darwin" ;;
msys|cygwin) _HOST="windows" ;;
esac

DEPS=$ANDROID_NDK_HOME/toolchains/llvm/prebuilt/$_HOST-x86_64/bin

export ANDROID_ARM_CC=$DEPS/armv7a-linux-androideabi16-clang
export ANDROID_ARM_STRIP=$DEPS/arm-linux-androideabi-strip
Expand All @@ -58,4 +64,4 @@ export ANDROID_X86_CC=$DEPS/i686-linux-android16-clang
export ANDROID_X86_STRIP=$DEPS/i686-linux-android-strip

export ANDROID_X86_64_CC=$DEPS/x86_64-linux-android21-clang
export ANDROID_X86_64_STRIP=$DEPS/x86_64-linux-android-strip
export ANDROID_X86_64_STRIP=$DEPS/x86_64-linux-android-strip

0 comments on commit 3d817c3

Please sign in to comment.