Skip to content

Commit 955b26c

Browse files
committed
Merge pull request #1159 from joshuastray/develop-2
Fix ndk r10c compilation
2 parents 0fe443d + 9518013 commit 955b26c

File tree

8 files changed

+2
-18
lines changed

8 files changed

+2
-18
lines changed

build/android-build.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,9 +82,9 @@ def do_build(cocos_root, ndk_root, app_android_root, ndk_build_param,sdk_root,an
8282

8383
num_of_cpu = get_num_of_cpu()
8484
if ndk_build_param == None:
85-
command = '%s -j%d -C %s NDK_DEBUG=%d %s' % (ndk_path, num_of_cpu, app_android_root, build_mode=='debug', ndk_module_path)
85+
command = '%s -j%d -C %s NDK_TOOLCHAIN_VERSION=4.8 NDK_DEBUG=%d %s' % (ndk_path, num_of_cpu, app_android_root, build_mode=='debug', ndk_module_path)
8686
else:
87-
command = '%s -j%d -C %s NDK_DEBUG=%d %s %s' % (ndk_path, num_of_cpu, app_android_root, build_mode=='debug', ndk_build_param, ndk_module_path)
87+
command = '%s -j%d -C %s NDK_TOOLCHAIN_VERSION=4.8 NDK_DEBUG=%d %s %s' % (ndk_path, num_of_cpu, app_android_root, build_mode=='debug', ndk_build_param, ndk_module_path)
8888
print command
8989
if os.system(command) != 0:
9090
raise Exception("Build dynamic library for project [ " + app_android_root + " ] fails!")

samples/js-moonwarriors/project/proj.android/jni/Application.mk

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,5 @@
11
APP_STL := gnustl_static
22

3-
#use clang by default, uncomment next line to use gcc4.8
4-
#NDK_TOOLCHAIN_VERSION=4.8
5-
NDK_TOOLCHAIN_VERSION=clang
6-
73
APP_CPPFLAGS := -frtti -DCC_ENABLE_CHIPMUNK_INTEGRATION=1 -std=c++11 -fsigned-char
84
APP_LDFLAGS := -latomic
95

samples/js-tests/project/proj.android/jni/Application.mk

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,5 @@
11
APP_STL := gnustl_static
22

3-
#use clang by default, uncomment next line to use gcc4.8
4-
#NDK_TOOLCHAIN_VERSION=4.8
5-
NDK_TOOLCHAIN_VERSION=clang
6-
73
APP_CPPFLAGS := -frtti -DCC_ENABLE_CHIPMUNK_INTEGRATION=1 -std=c++11 -fsigned-char
84
APP_LDFLAGS := -latomic
95

templates/js-template-default/frameworks/runtime-src/proj.android/jni/Application.mk

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,5 @@
11
APP_STL := gnustl_static
22

3-
#use clang by default, uncomment next line to use gcc4.8
4-
#NDK_TOOLCHAIN_VERSION=4.8
5-
NDK_TOOLCHAIN_VERSION=clang
6-
73
APP_CPPFLAGS := -frtti -DCC_ENABLE_CHIPMUNK_INTEGRATION=1 -std=c++11 -fsigned-char
84
APP_LDFLAGS := -latomic
95

templates/js-template-runtime/frameworks/runtime-src/proj.android/jni/Application.mk

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,5 @@
11
APP_STL := gnustl_static
22

3-
#use clang by default, uncomment next line to use gcc4.8
4-
#NDK_TOOLCHAIN_VERSION=4.8
5-
NDK_TOOLCHAIN_VERSION=clang
6-
73
APP_CPPFLAGS := -frtti -DCC_ENABLE_CHIPMUNK_INTEGRATION=1 -std=c++11 -fsigned-char
84
APP_LDFLAGS := -latomic
95

0 commit comments

Comments
 (0)