mirror of https://github.com/axmolengine/axmol.git
Merge pull request #3319 from dumganhar/android-ndk-r9-fix
[Android] Fixing build errors for ndk-r9.
This commit is contained in:
commit
b75f8e5698
|
@ -51,7 +51,7 @@ void log(const char * pszFormat, ...)
|
|||
vsnprintf(buf, MAX_LEN, pszFormat, args);
|
||||
va_end(args);
|
||||
|
||||
__android_log_print(ANDROID_LOG_DEBUG, "cocos2d-x debug info", buf);
|
||||
__android_log_print(ANDROID_LOG_DEBUG, "cocos2d-x debug info", "%s", buf);
|
||||
}
|
||||
|
||||
void MessageBox(const char * pszMsg, const char * pszTitle)
|
||||
|
|
|
@ -35,6 +35,20 @@ echo "please define NDK_ROOT"
|
|||
exit 1
|
||||
fi
|
||||
|
||||
# For compatibility of android-ndk-r9, 4.7 was removed from r9
|
||||
if [ -d "${NDK_ROOT}/toolchains/arm-linux-androideabi-4.7" ]; then
|
||||
export NDK_TOOLCHAIN_VERSION=4.7
|
||||
echo "The Selected NDK toolchain version was 4.7 !"
|
||||
else
|
||||
if [ -d "${NDK_ROOT}/toolchains/arm-linux-androideabi-4.8" ]; then
|
||||
export NDK_TOOLCHAIN_VERSION=4.8
|
||||
echo "The Selected NDK toolchain version was 4.8 !"
|
||||
else
|
||||
echo "Couldn't find the gcc toolchain."
|
||||
exit 1
|
||||
fi
|
||||
fi
|
||||
|
||||
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
||||
# ... use paths relative to current directory
|
||||
PLUGIN_ROOT="$DIR/../../.."
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
APP_STL := gnustl_static
|
||||
APP_CPPFLAGS := -frtti -DCOCOS2D_JAVASCRIPT=1 -std=c++11
|
||||
APP_CPPFLAGS += -DCOCOS2D_DEBUG=1 -DCC_ENABLE_CHIPMUNK_INTEGRATION=1
|
||||
NDK_TOOLCHAIN_VERSION=4.7
|
||||
|
||||
|
|
|
@ -35,6 +35,20 @@ echo "please define NDK_ROOT"
|
|||
exit 1
|
||||
fi
|
||||
|
||||
# For compatibility of android-ndk-r9, 4.7 was removed from r9
|
||||
if [ -d "${NDK_ROOT}/toolchains/arm-linux-androideabi-4.7" ]; then
|
||||
export NDK_TOOLCHAIN_VERSION=4.7
|
||||
echo "The Selected NDK toolchain version was 4.7 !"
|
||||
else
|
||||
if [ -d "${NDK_ROOT}/toolchains/arm-linux-androideabi-4.8" ]; then
|
||||
export NDK_TOOLCHAIN_VERSION=4.8
|
||||
echo "The Selected NDK toolchain version was 4.8 !"
|
||||
else
|
||||
echo "Couldn't find the gcc toolchain."
|
||||
exit 1
|
||||
fi
|
||||
fi
|
||||
|
||||
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
||||
# ... use paths relative to current directory
|
||||
PLUGIN_ROOT="$DIR/../../.."
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
APP_STL := gnustl_static
|
||||
APP_CPPFLAGS := -frtti -DCOCOS2D_JAVASCRIPT=1 -std=c++11
|
||||
APP_CPPFLAGS += -DCOCOS2D_DEBUG=1 -DCC_ENABLE_CHIPMUNK_INTEGRATION=1
|
||||
NDK_TOOLCHAIN_VERSION=4.7
|
||||
|
||||
|
|
|
@ -35,6 +35,20 @@ echo "please define NDK_ROOT"
|
|||
exit 1
|
||||
fi
|
||||
|
||||
# For compatibility of android-ndk-r9, 4.7 was removed from r9
|
||||
if [ -d "${NDK_ROOT}/toolchains/arm-linux-androideabi-4.7" ]; then
|
||||
export NDK_TOOLCHAIN_VERSION=4.7
|
||||
echo "The Selected NDK toolchain version was 4.7 !"
|
||||
else
|
||||
if [ -d "${NDK_ROOT}/toolchains/arm-linux-androideabi-4.8" ]; then
|
||||
export NDK_TOOLCHAIN_VERSION=4.8
|
||||
echo "The Selected NDK toolchain version was 4.8 !"
|
||||
else
|
||||
echo "Couldn't find the gcc toolchain."
|
||||
exit 1
|
||||
fi
|
||||
fi
|
||||
|
||||
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
||||
# ... use paths relative to current directory
|
||||
PLUGIN_ROOT="$DIR/../../.."
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
APP_STL := gnustl_static
|
||||
APP_CPPFLAGS := -frtti -DCC_ENABLE_CHIPMUNK_INTEGRATION=1 -DCOCOS2D_DEBUG=1 -std=c++11
|
||||
NDK_TOOLCHAIN_VERSION=4.7
|
||||
|
||||
|
|
|
@ -49,6 +49,20 @@ echo "NDK_ROOT not defined. Please define NDK_ROOT in your environment or in loc
|
|||
exit 1
|
||||
fi
|
||||
|
||||
# For compatibility of android-ndk-r9, 4.7 was removed from r9
|
||||
if [ -d "${NDK_ROOT}/toolchains/arm-linux-androideabi-4.7" ]; then
|
||||
export NDK_TOOLCHAIN_VERSION=4.7
|
||||
echo "The Selected NDK toolchain version was 4.7 !"
|
||||
else
|
||||
if [ -d "${NDK_ROOT}/toolchains/arm-linux-androideabi-4.8" ]; then
|
||||
export NDK_TOOLCHAIN_VERSION=4.8
|
||||
echo "The Selected NDK toolchain version was 4.8 !"
|
||||
else
|
||||
echo "Couldn't find the gcc toolchain."
|
||||
exit 1
|
||||
fi
|
||||
fi
|
||||
|
||||
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
||||
# ... use paths relative to current directory
|
||||
COCOS2DX_ROOT="$DIR/../../../.."
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
APP_STL := gnustl_static
|
||||
APP_CPPFLAGS := -frtti -DCOCOS2D_JAVASCRIPT=1 -std=c++11
|
||||
APP_CPPFLAGS += -DCOCOS2D_DEBUG=1 -DCC_ENABLE_CHIPMUNK_INTEGRATION=1
|
||||
NDK_TOOLCHAIN_VERSION=4.7
|
|
@ -49,6 +49,20 @@ echo "NDK_ROOT not defined. Please define NDK_ROOT in your environment or in loc
|
|||
exit 1
|
||||
fi
|
||||
|
||||
# For compatibility of android-ndk-r9, 4.7 was removed from r9
|
||||
if [ -d "${NDK_ROOT}/toolchains/arm-linux-androideabi-4.7" ]; then
|
||||
export NDK_TOOLCHAIN_VERSION=4.7
|
||||
echo "The Selected NDK toolchain version was 4.7 !"
|
||||
else
|
||||
if [ -d "${NDK_ROOT}/toolchains/arm-linux-androideabi-4.8" ]; then
|
||||
export NDK_TOOLCHAIN_VERSION=4.8
|
||||
echo "The Selected NDK toolchain version was 4.8 !"
|
||||
else
|
||||
echo "Couldn't find the gcc toolchain."
|
||||
exit 1
|
||||
fi
|
||||
fi
|
||||
|
||||
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
||||
# ... use paths relative to current directory
|
||||
COCOS2DX_ROOT="$DIR/../../../.."
|
||||
|
|
|
@ -1,3 +1,2 @@
|
|||
APP_STL := gnustl_static
|
||||
APP_CPPFLAGS := -frtti -DCOCOS2D_DEBUG=1 -std=c++11
|
||||
NDK_TOOLCHAIN_VERSION=4.7
|
|
@ -49,6 +49,20 @@ echo "NDK_ROOT not defined. Please define NDK_ROOT in your environment or in loc
|
|||
exit 1
|
||||
fi
|
||||
|
||||
# For compatibility of android-ndk-r9, 4.7 was removed from r9
|
||||
if [ -d "${NDK_ROOT}/toolchains/arm-linux-androideabi-4.7" ]; then
|
||||
export NDK_TOOLCHAIN_VERSION=4.7
|
||||
echo "The Selected NDK toolchain version was 4.7 !"
|
||||
else
|
||||
if [ -d "${NDK_ROOT}/toolchains/arm-linux-androideabi-4.8" ]; then
|
||||
export NDK_TOOLCHAIN_VERSION=4.8
|
||||
echo "The Selected NDK toolchain version was 4.8 !"
|
||||
else
|
||||
echo "Couldn't find the gcc toolchain."
|
||||
exit 1
|
||||
fi
|
||||
fi
|
||||
|
||||
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
||||
# ... use paths relative to current directory
|
||||
COCOS2DX_ROOT="$DIR/../../../.."
|
||||
|
|
|
@ -1,3 +1,2 @@
|
|||
APP_STL := gnustl_static
|
||||
APP_CPPFLAGS := -frtti -DCOCOS2D_DEBUG=1 -std=c++11
|
||||
NDK_TOOLCHAIN_VERSION=4.7
|
|
@ -49,6 +49,21 @@ echo "NDK_ROOT not defined. Please define NDK_ROOT in your environment or in loc
|
|||
exit 1
|
||||
fi
|
||||
|
||||
# For compatibility of android-ndk-r9, 4.7 was removed from r9
|
||||
if [ -d "${NDK_ROOT}/toolchains/arm-linux-androideabi-4.7" ]; then
|
||||
export NDK_TOOLCHAIN_VERSION=4.7
|
||||
echo "The Selected NDK toolchain version was 4.7 !"
|
||||
else
|
||||
if [ -d "${NDK_ROOT}/toolchains/arm-linux-androideabi-4.8" ]; then
|
||||
export NDK_TOOLCHAIN_VERSION=4.8
|
||||
echo "The Selected NDK toolchain version was 4.8 !"
|
||||
else
|
||||
echo "Couldn't find the gcc toolchain."
|
||||
exit 1
|
||||
fi
|
||||
fi
|
||||
|
||||
|
||||
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
||||
# ... use paths relative to current directory
|
||||
COCOS2DX_ROOT="$DIR/../../../.."
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
APP_STL := gnustl_static
|
||||
APP_CPPFLAGS := -frtti -DCC_ENABLE_CHIPMUNK_INTEGRATION=1 -DCOCOS2D_DEBUG=1 -std=c++11
|
||||
NDK_TOOLCHAIN_VERSION=4.7
|
||||
|
||||
|
|
|
@ -58,6 +58,20 @@ echo "NDK_ROOT not defined. Please define NDK_ROOT in your environment or in loc
|
|||
exit 1
|
||||
fi
|
||||
|
||||
# For compatibility of android-ndk-r9, 4.7 was removed from r9
|
||||
if [ -d "${NDK_ROOT}/toolchains/arm-linux-androideabi-4.7" ]; then
|
||||
export NDK_TOOLCHAIN_VERSION=4.7
|
||||
echo "The Selected NDK toolchain version was 4.7 !"
|
||||
else
|
||||
if [ -d "${NDK_ROOT}/toolchains/arm-linux-androideabi-4.8" ]; then
|
||||
export NDK_TOOLCHAIN_VERSION=4.8
|
||||
echo "The Selected NDK toolchain version was 4.8 !"
|
||||
else
|
||||
echo "Couldn't find the gcc toolchain."
|
||||
exit 1
|
||||
fi
|
||||
fi
|
||||
|
||||
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
||||
# ... use paths relative to current directory
|
||||
COCOS2DX_ROOT="$DIR/../../../.."
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
APP_STL := gnustl_static
|
||||
APP_CPPFLAGS := -frtti -DCOCOS2D_JAVASCRIPT=1 -std=c++11
|
||||
APP_CPPFLAGS += -DCOCOS2D_DEBUG=1 -DCC_ENABLE_CHIPMUNK_INTEGRATION=1
|
||||
NDK_TOOLCHAIN_VERSION=4.7
|
||||
|
||||
|
|
|
@ -58,6 +58,20 @@ echo "NDK_ROOT not defined. Please define NDK_ROOT in your environment or in loc
|
|||
exit 1
|
||||
fi
|
||||
|
||||
# For compatibility of android-ndk-r9, 4.7 was removed from r9
|
||||
if [ -d "${NDK_ROOT}/toolchains/arm-linux-androideabi-4.7" ]; then
|
||||
export NDK_TOOLCHAIN_VERSION=4.7
|
||||
echo "The Selected NDK toolchain version was 4.7 !"
|
||||
else
|
||||
if [ -d "${NDK_ROOT}/toolchains/arm-linux-androideabi-4.8" ]; then
|
||||
export NDK_TOOLCHAIN_VERSION=4.8
|
||||
echo "The Selected NDK toolchain version was 4.8 !"
|
||||
else
|
||||
echo "Couldn't find the gcc toolchain."
|
||||
exit 1
|
||||
fi
|
||||
fi
|
||||
|
||||
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
||||
# ... use paths relative to current directory
|
||||
COCOS2DX_ROOT="$DIR/../../../.."
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
APP_STL := gnustl_static
|
||||
APP_CPPFLAGS := -frtti -DCOCOS2D_JAVASCRIPT=1 -std=c++11
|
||||
APP_CPPFLAGS += -DCOCOS2D_DEBUG=1 -DCC_ENABLE_CHIPMUNK_INTEGRATION=1
|
||||
NDK_TOOLCHAIN_VERSION=4.7
|
||||
|
||||
|
|
|
@ -57,6 +57,20 @@ echo "NDK_ROOT not defined. Please define NDK_ROOT in your environment or in loc
|
|||
exit 1
|
||||
fi
|
||||
|
||||
# For compatibility of android-ndk-r9, 4.7 was removed from r9
|
||||
if [ -d "${NDK_ROOT}/toolchains/arm-linux-androideabi-4.7" ]; then
|
||||
export NDK_TOOLCHAIN_VERSION=4.7
|
||||
echo "The Selected NDK toolchain version was 4.7 !"
|
||||
else
|
||||
if [ -d "${NDK_ROOT}/toolchains/arm-linux-androideabi-4.8" ]; then
|
||||
export NDK_TOOLCHAIN_VERSION=4.8
|
||||
echo "The Selected NDK toolchain version was 4.8 !"
|
||||
else
|
||||
echo "Couldn't find the gcc toolchain."
|
||||
exit 1
|
||||
fi
|
||||
fi
|
||||
|
||||
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
||||
# ... use paths relative to current directory
|
||||
COCOS2DX_ROOT="$DIR/../../../.."
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
APP_STL := gnustl_static
|
||||
APP_CPPFLAGS := -frtti -DCOCOS2D_JAVASCRIPT= -std=c++11
|
||||
APP_CPPFLAGS += -DCOCOS2D_DEBUG=1 -DCC_ENABLE_CHIPMUNK_INTEGRATION=1
|
||||
NDK_TOOLCHAIN_VERSION=4.7
|
||||
|
||||
|
|
|
@ -57,6 +57,20 @@ echo "NDK_ROOT not defined. Please define NDK_ROOT in your environment or in loc
|
|||
exit 1
|
||||
fi
|
||||
|
||||
# For compatibility of android-ndk-r9, 4.7 was removed from r9
|
||||
if [ -d "${NDK_ROOT}/toolchains/arm-linux-androideabi-4.7" ]; then
|
||||
export NDK_TOOLCHAIN_VERSION=4.7
|
||||
echo "The Selected NDK toolchain version was 4.7 !"
|
||||
else
|
||||
if [ -d "${NDK_ROOT}/toolchains/arm-linux-androideabi-4.8" ]; then
|
||||
export NDK_TOOLCHAIN_VERSION=4.8
|
||||
echo "The Selected NDK toolchain version was 4.8 !"
|
||||
else
|
||||
echo "Couldn't find the gcc toolchain."
|
||||
exit 1
|
||||
fi
|
||||
fi
|
||||
|
||||
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
||||
# ... use paths relative to current directory
|
||||
COCOS2DX_ROOT="$DIR/../../../.."
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
APP_STL := gnustl_static
|
||||
APP_CPPFLAGS := -frtti -DCOCOS2D_JAVASCRIPT=1 -std=c++11
|
||||
APP_CPPFLAGS += -DCOCOS2D_DEBUG=1 -DCC_ENABLE_CHIPMUNK_INTEGRATION=1
|
||||
NDK_TOOLCHAIN_VERSION=4.7
|
||||
|
||||
|
|
|
@ -57,6 +57,20 @@ echo "NDK_ROOT not defined. Please define NDK_ROOT in your environment or in loc
|
|||
exit 1
|
||||
fi
|
||||
|
||||
# For compatibility of android-ndk-r9, 4.7 was removed from r9
|
||||
if [ -d "${NDK_ROOT}/toolchains/arm-linux-androideabi-4.7" ]; then
|
||||
export NDK_TOOLCHAIN_VERSION=4.7
|
||||
echo "The Selected NDK toolchain version was 4.7 !"
|
||||
else
|
||||
if [ -d "${NDK_ROOT}/toolchains/arm-linux-androideabi-4.8" ]; then
|
||||
export NDK_TOOLCHAIN_VERSION=4.8
|
||||
echo "The Selected NDK toolchain version was 4.8 !"
|
||||
else
|
||||
echo "Couldn't find the gcc toolchain."
|
||||
exit 1
|
||||
fi
|
||||
fi
|
||||
|
||||
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
||||
# ... use paths relative to current directory
|
||||
COCOS2DX_ROOT="$DIR/../../../.."
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
APP_STL := gnustl_static
|
||||
APP_CPPFLAGS := -frtti -DCOCOS2D_JAVASCRIPT=1 -std=c++11
|
||||
APP_CPPFLAGS += -DCOCOS2D_DEBUG=1 -DCC_ENABLE_CHIPMUNK_INTEGRATION=1
|
||||
NDK_TOOLCHAIN_VERSION=4.7
|
||||
|
||||
|
|
|
@ -49,6 +49,20 @@ echo "NDK_ROOT not defined. Please define NDK_ROOT in your environment or in loc
|
|||
exit 1
|
||||
fi
|
||||
|
||||
# For compatibility of android-ndk-r9, 4.7 was removed from r9
|
||||
if [ -d "${NDK_ROOT}/toolchains/arm-linux-androideabi-4.7" ]; then
|
||||
export NDK_TOOLCHAIN_VERSION=4.7
|
||||
echo "The Selected NDK toolchain version was 4.7 !"
|
||||
else
|
||||
if [ -d "${NDK_ROOT}/toolchains/arm-linux-androideabi-4.8" ]; then
|
||||
export NDK_TOOLCHAIN_VERSION=4.8
|
||||
echo "The Selected NDK toolchain version was 4.8 !"
|
||||
else
|
||||
echo "Couldn't find the gcc toolchain."
|
||||
exit 1
|
||||
fi
|
||||
fi
|
||||
|
||||
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
||||
# ... use paths relative to current directory
|
||||
COCOS2DX_ROOT="$DIR/../../../.."
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
APP_STL := gnustl_static
|
||||
APP_CPPFLAGS := -frtti -DCOCOS2D_DEBUG=1 -std=c++11
|
||||
APP_CPPFLAGS += -fexceptions
|
||||
NDK_TOOLCHAIN_VERSION=4.7
|
||||
|
||||
|
|
|
@ -49,6 +49,21 @@ echo "NDK_ROOT not defined. Please define NDK_ROOT in your environment or in loc
|
|||
exit 1
|
||||
fi
|
||||
|
||||
# For compatibility of android-ndk-r9, 4.7 was removed from r9
|
||||
if [ -d "${NDK_ROOT}/toolchains/arm-linux-androideabi-4.7" ]; then
|
||||
export NDK_TOOLCHAIN_VERSION=4.7
|
||||
echo "The Selected NDK toolchain version was 4.7 !"
|
||||
else
|
||||
if [ -d "${NDK_ROOT}/toolchains/arm-linux-androideabi-4.8" ]; then
|
||||
export NDK_TOOLCHAIN_VERSION=4.8
|
||||
echo "The Selected NDK toolchain version was 4.8 !"
|
||||
else
|
||||
echo "Couldn't find the gcc toolchain."
|
||||
exit 1
|
||||
fi
|
||||
fi
|
||||
|
||||
|
||||
if [ -z "${COCOS2DX_ROOT+aaa}" ]; then
|
||||
# ... if COCOS2DX_ROOT is not set
|
||||
# ... find current working directory
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
APP_STL := gnustl_static
|
||||
APP_CPPFLAGS := -frtti -DCOCOS2D_DEBUG=1 -std=c++11
|
||||
APP_CPPFLAGS += -fexceptions
|
||||
NDK_TOOLCHAIN_VERSION=4.7
|
||||
|
||||
|
|
|
@ -35,6 +35,20 @@ echo "please define NDK_ROOT"
|
|||
exit 1
|
||||
fi
|
||||
|
||||
# For compatibility of android-ndk-r9, 4.7 was removed from r9
|
||||
if [ -d "${NDK_ROOT}/toolchains/arm-linux-androideabi-4.7" ]; then
|
||||
export NDK_TOOLCHAIN_VERSION=4.7
|
||||
echo "The Selected NDK toolchain version was 4.7 !"
|
||||
else
|
||||
if [ -d "${NDK_ROOT}/toolchains/arm-linux-androideabi-4.8" ]; then
|
||||
export NDK_TOOLCHAIN_VERSION=4.8
|
||||
echo "The Selected NDK toolchain version was 4.8 !"
|
||||
else
|
||||
echo "Couldn't find the gcc toolchain."
|
||||
exit 1
|
||||
fi
|
||||
fi
|
||||
|
||||
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
||||
# ... use paths relative to current directory
|
||||
COCOS2DX_ROOT="$DIR/../../.."
|
||||
|
|
|
@ -1,3 +1,2 @@
|
|||
APP_STL := gnustl_static
|
||||
APP_CPPFLAGS := -frtti -DCC_ENABLE_CHIPMUNK_INTEGRATION=1 -DCOCOS2D_DEBUG=1 -std=c++11
|
||||
NDK_TOOLCHAIN_VERSION=4.7
|
||||
|
|
|
@ -43,6 +43,20 @@ echo "please define NDK_ROOT"
|
|||
exit 1
|
||||
fi
|
||||
|
||||
# For compatibility of android-ndk-r9, 4.7 was removed from r9
|
||||
if [ -d "${NDK_ROOT}/toolchains/arm-linux-androideabi-4.7" ]; then
|
||||
export NDK_TOOLCHAIN_VERSION=4.7
|
||||
echo "The Selected NDK toolchain version was 4.7 !"
|
||||
else
|
||||
if [ -d "${NDK_ROOT}/toolchains/arm-linux-androideabi-4.8" ]; then
|
||||
export NDK_TOOLCHAIN_VERSION=4.8
|
||||
echo "The Selected NDK toolchain version was 4.8 !"
|
||||
else
|
||||
echo "Couldn't find the gcc toolchain."
|
||||
exit 1
|
||||
fi
|
||||
fi
|
||||
|
||||
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
||||
# ... use paths relative to current directory
|
||||
COCOS2DX_ROOT="$DIR/../../.."
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
APP_STL := gnustl_static
|
||||
APP_CPPFLAGS := -frtti -DCOCOS2D_JAVASCRIPT=1
|
||||
APP_CPPFLAGS += -DCOCOS2D_DEBUG=1 -DCC_ENABLE_CHIPMUNK_INTEGRATION=1 -std=c++11
|
||||
NDK_TOOLCHAIN_VERSION=4.7
|
||||
|
||||
|
|
|
@ -35,6 +35,20 @@ echo "please define NDK_ROOT"
|
|||
exit 1
|
||||
fi
|
||||
|
||||
# For compatibility of android-ndk-r9, 4.7 was removed from r9
|
||||
if [ -d "${NDK_ROOT}/toolchains/arm-linux-androideabi-4.7" ]; then
|
||||
export NDK_TOOLCHAIN_VERSION=4.7
|
||||
echo "The Selected NDK toolchain version was 4.7 !"
|
||||
else
|
||||
if [ -d "${NDK_ROOT}/toolchains/arm-linux-androideabi-4.8" ]; then
|
||||
export NDK_TOOLCHAIN_VERSION=4.8
|
||||
echo "The Selected NDK toolchain version was 4.8 !"
|
||||
else
|
||||
echo "Couldn't find the gcc toolchain."
|
||||
exit 1
|
||||
fi
|
||||
fi
|
||||
|
||||
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
||||
# ... use paths relative to current directory
|
||||
COCOS2DX_ROOT="$DIR/../../.."
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
APP_STL := gnustl_static
|
||||
APP_CPPFLAGS := -frtti -DCOCOS2D_DEBUG=1 -DCC_ENABLE_CHIPMUNK_INTEGRATION=1 -std=c++11
|
||||
APP_CPPFLAGS += -fexceptions
|
||||
NDK_TOOLCHAIN_VERSION=4.7
|
||||
|
||||
|
|
Loading…
Reference in New Issue