cocos2d / cocos2d-x-3rd-party-libs-src

Dependencies of cocos2d-x.
142 stars 169 forks source link

Android build use make-standalone-toolchain.sh and support clang. #154

Closed yalab closed 6 years ago

yalab commented 7 years ago

Hi. Android NDK gcc is deprecated https://android.googlesource.com/platform/ndk.git/+/master/CHANGELOG.md . Then we need to support clang. I fixed it.

Thanks.

minggo commented 7 years ago

clang + gnustl may have problem, we met it before. For example, this issue met problem when using clang + gnustl. We need to use clang + c++_static when c++_static is stable.

yalab commented 7 years ago

You can use c++_static via android.ini

cfg_default_build_stl="libc++" 

https://github.com/cocos2d/cocos2d-x-3rd-party-libs-src/pull/154/files#diff-1234ea07dc689a0c6ab73e3ab13677d1R16