diff --git a/build.sh b/build.sh index 524239f0a..e1696889d 100755 --- a/build.sh +++ b/build.sh @@ -95,19 +95,18 @@ else sed -i 's/android:debuggable="false"/android:debuggable="true"/g' project/AndroidManifest.xml fi -MYARCH=linux-x86 +MYARCH=linux-x86_64 NCPU=4 if uname -s | grep -i "linux" > /dev/null ; then - MYARCH=linux-x86 + MYARCH=linux-x86_64 NCPU=`cat /proc/cpuinfo | grep -c -i processor` fi if uname -s | grep -i "darwin" > /dev/null ; then - MYARCH=darwin-x86 + MYARCH=darwin-x86_64 fi if uname -s | grep -i "windows" > /dev/null ; then - MYARCH=windows-x86 + MYARCH=windows-x86_64 fi -grep "64.bit" "`which ndk-build | sed 's@/ndk-build@@'`/RELEASE.TXT" >/dev/null 2>&1 && MYARCH="${MYARCH}_64" $quick_rebuild || rm -r -f project/bin/* # New Android SDK introduced some lame-ass optimizations to the build system which we should take care about [ -x project/jni/application/src/AndroidPreBuild.sh ] && { diff --git a/project/jni/application/setEnvironment-arm64-v8a.sh b/project/jni/application/setEnvironment-arm64-v8a.sh index 4d1623668..dfc03eacd 100755 --- a/project/jni/application/setEnvironment-arm64-v8a.sh +++ b/project/jni/application/setEnvironment-arm64-v8a.sh @@ -3,23 +3,21 @@ IFS=' ' -MYARCH=linux-x86 +MYARCH=linux-x86_64 if uname -s | grep -i "linux" > /dev/null ; then - MYARCH=linux-x86 + MYARCH=linux-x86_64 fi if uname -s | grep -i "darwin" > /dev/null ; then - MYARCH=darwin-x86 + MYARCH=darwin-x86_64 fi if uname -s | grep -i "windows" > /dev/null ; then - MYARCH=windows-x86 + MYARCH=windows-x86_64 fi NDK=`which ndk-build` NDK=`dirname $NDK` NDK=`readlink -f $NDK` -grep "64.bit" "$NDK/RELEASE.TXT" >/dev/null 2>&1 && MYARCH="${MYARCH}_64" - #echo NDK $NDK GCCPREFIX=aarch64-linux-android [ -z "$NDK_TOOLCHAIN_VERSION" ] && NDK_TOOLCHAIN_VERSION=4.9 diff --git a/project/jni/application/setEnvironment-armeabi-v7a-hard.sh b/project/jni/application/setEnvironment-armeabi-v7a-hard.sh index a64e9bccf..237db8586 100755 --- a/project/jni/application/setEnvironment-armeabi-v7a-hard.sh +++ b/project/jni/application/setEnvironment-armeabi-v7a-hard.sh @@ -3,15 +3,15 @@ IFS=' ' -MYARCH=linux-x86 +MYARCH=linux-x86_64 if uname -s | grep -i "linux" > /dev/null ; then - MYARCH=linux-x86 + MYARCH=linux-x86_64 fi if uname -s | grep -i "darwin" > /dev/null ; then - MYARCH=darwin-x86 + MYARCH=darwin-x86_64 fi if uname -s | grep -i "windows" > /dev/null ; then - MYARCH=windows-x86 + MYARCH=windows-x86_64 fi NDK=`which ndk-build` diff --git a/project/jni/application/setEnvironment-armeabi-v7a.sh b/project/jni/application/setEnvironment-armeabi-v7a.sh index 70bd7e9dd..1dddc6e4e 100755 --- a/project/jni/application/setEnvironment-armeabi-v7a.sh +++ b/project/jni/application/setEnvironment-armeabi-v7a.sh @@ -3,15 +3,15 @@ IFS=' ' -MYARCH=linux-x86 +MYARCH=linux-x86_64 if uname -s | grep -i "linux" > /dev/null ; then - MYARCH=linux-x86 + MYARCH=linux-x86_64 fi if uname -s | grep -i "darwin" > /dev/null ; then - MYARCH=darwin-x86 + MYARCH=darwin-x86_64 fi if uname -s | grep -i "windows" > /dev/null ; then - MYARCH=windows-x86 + MYARCH=windows-x86_64 fi NDK=`which ndk-build` diff --git a/project/jni/application/setEnvironment-mips.sh b/project/jni/application/setEnvironment-mips.sh index e604b77cb..287d82d14 100755 --- a/project/jni/application/setEnvironment-mips.sh +++ b/project/jni/application/setEnvironment-mips.sh @@ -3,15 +3,15 @@ IFS=' ' -MYARCH=linux-x86 +MYARCH=linux-x86_64 if uname -s | grep -i "linux" > /dev/null ; then - MYARCH=linux-x86 + MYARCH=linux-x86_64 fi if uname -s | grep -i "darwin" > /dev/null ; then - MYARCH=darwin-x86 + MYARCH=darwin-x86_64 fi if uname -s | grep -i "windows" > /dev/null ; then - MYARCH=windows-x86 + MYARCH=windows-x86_64 fi NDK=`which ndk-build` diff --git a/project/jni/application/setEnvironment-x86.sh b/project/jni/application/setEnvironment-x86.sh index 792bece61..e6862409c 100755 --- a/project/jni/application/setEnvironment-x86.sh +++ b/project/jni/application/setEnvironment-x86.sh @@ -3,15 +3,15 @@ IFS=' ' -MYARCH=linux-x86 +MYARCH=linux-x86_64 if uname -s | grep -i "linux" > /dev/null ; then - MYARCH=linux-x86 + MYARCH=linux-x86_64 fi if uname -s | grep -i "darwin" > /dev/null ; then - MYARCH=darwin-x86 + MYARCH=darwin-x86_64 fi if uname -s | grep -i "windows" > /dev/null ; then - MYARCH=windows-x86 + MYARCH=windows-x86_64 fi NDK=`which ndk-build` diff --git a/project/jni/application/setEnvironment.sh b/project/jni/application/setEnvironment.sh index 995f8f24f..f4976d1ee 100755 --- a/project/jni/application/setEnvironment.sh +++ b/project/jni/application/setEnvironment.sh @@ -3,15 +3,15 @@ IFS=' ' -MYARCH=linux-x86 +MYARCH=linux-x86_64 if uname -s | grep -i "linux" > /dev/null ; then - MYARCH=linux-x86 + MYARCH=linux-x86_64 fi if uname -s | grep -i "darwin" > /dev/null ; then - MYARCH=darwin-x86 + MYARCH=darwin-x86_64 fi if uname -s | grep -i "windows" > /dev/null ; then - MYARCH=windows-x86 + MYARCH=windows-x86_64 fi NDK=`which ndk-build`