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

Support Windows and Mac NDK #82

Open
wants to merge 1 commit into
base: dev
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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