diff --git a/build.sh b/build.sh index 51ee36401ac8a92ff909884075a7ed862787cb97..bad321d6ec7937ffcdf3b1b5f63046df98be0478 100755 --- a/build.sh +++ b/build.sh @@ -1,5 +1,9 @@ #!/bin/bash +. /etc/profile +. ~/.bashrc +#. ~/.zshrc + build_for_linux() { if [ ! `which brew` ]; then echo "building failed! homebrew not found, please install homebrew." @@ -65,8 +69,8 @@ build_for_mac() { } build_for_android() { - if [ -z "${NDK_ROOT}" ]; then - echo "NDK_ROOT not found!" + if [ -z "${ANDROID_NDK}" ]; then + echo "ANDROID_NDK not found!" exit -1 fi @@ -148,4 +152,4 @@ else else build_error fi -fi \ No newline at end of file +fi