You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
513 B
21 lines
513 B
# Defining a toolchain directory's name according to the current OS.
|
|
# Assume that proper version of NDK is installed.
|
|
case "$OSTYPE" in
|
|
darwin*) HOST_TAG="darwin-x86_64" ;;
|
|
linux*) HOST_TAG="linux-x86_64" ;;
|
|
msys)
|
|
case "$(uname -m)" in
|
|
x86_64) HOST_TAG="windows-x86_64" ;;
|
|
i686) HOST_TAG="windows" ;;
|
|
esac
|
|
;;
|
|
esac
|
|
|
|
if [[ $OSTYPE == "darwin"* ]]; then
|
|
HOST_NPROC=$(sysctl -n hw.physicalcpu)
|
|
else
|
|
HOST_NPROC=$(nproc)
|
|
fi
|
|
|
|
export HOST_TAG=$HOST_TAG
|
|
export HOST_NPROC=$HOST_NPROC
|
|
|