Merge pull request #16090 from ricardoquesada/issue_15566

fixes issue #15566
This commit is contained in:
Ricardo Quesada 2016-07-12 21:36:52 -07:00 committed by GitHub
commit 1824b21cb7
9 changed files with 31 additions and 10 deletions

View File

@ -29,11 +29,12 @@
// FIXME: using ndk-r10c will cause the next function could not be found. It may be a bug of ndk-r10c. // FIXME: using ndk-r10c will cause the next function could not be found. It may be a bug of ndk-r10c.
// Here is the workaround method to fix the problem. // Here is the workaround method to fix the problem.
#ifdef __aarch64__ // Fixed, at least, in NDK 12b
extern "C" size_t __ctype_get_mb_cur_max(void) { //#ifdef __aarch64__
return (size_t) sizeof(wchar_t); //extern "C" size_t __ctype_get_mb_cur_max(void) {
} // return (size_t) sizeof(wchar_t);
#endif //}
//#endif
NS_CC_BEGIN NS_CC_BEGIN

View File

@ -21,7 +21,17 @@ LOCAL_EXPORT_LDLIBS := -lGLESv2 \
-llog \ -llog \
-landroid -landroid
LOCAL_STATIC_LIBRARIES := luajit_static ifeq ($(TARGET_ARCH_ABI),arm64-v8a)
LUA_STATIC_LIB := lua_static
LUA_IMPORT_PATH := lua/lua
LUA_INCLUDE_PATH := $(LOCAL_PATH)/../../../../external/lua/lua
else
LUA_STATIC_LIB := luajit_static
LUA_IMPORT_PATH := lua/luajit/prebuilt/android
LUA_INCLUDE_PATH := $(LOCAL_PATH)/../../../../external/lua/luajit/include
endif
LOCAL_STATIC_LIBRARIES := $(LUA_STATIC_LIB)
include $(BUILD_STATIC_LIBRARY) include $(BUILD_STATIC_LIBRARY)
@ -134,7 +144,7 @@ LOCAL_SRC_FILES += ../manual/navmesh/lua_cocos2dx_navmesh_conversions.cpp \
../auto/lua_cocos2dx_navmesh_auto.cpp \ ../auto/lua_cocos2dx_navmesh_auto.cpp \
LOCAL_C_INCLUDES := $(LOCAL_PATH)/../../../../external/lua/tolua \ LOCAL_C_INCLUDES := $(LOCAL_PATH)/../../../../external/lua/tolua \
$(LOCAL_PATH)/../../../../external/lua/luajit/include \ $(LUA_INCLUDE_PATH) \
$(LOCAL_PATH)/../../../2d \ $(LOCAL_PATH)/../../../2d \
$(LOCAL_PATH)/../../../3d \ $(LOCAL_PATH)/../../../3d \
$(LOCAL_PATH)/../../../network \ $(LOCAL_PATH)/../../../network \
@ -164,7 +174,7 @@ LOCAL_C_INCLUDES := $(LOCAL_PATH)/../../../../external/lua/tolua \
$(LOCAL_PATH)/../../../../external/lua $(LOCAL_PATH)/../../../../external/lua
LOCAL_EXPORT_C_INCLUDES := $(LOCAL_PATH)/../../../../external/lua/tolua \ LOCAL_EXPORT_C_INCLUDES := $(LOCAL_PATH)/../../../../external/lua/tolua \
$(LOCAL_PATH)/../../../../external/lua/luajit/include \ $(LUA_INCLUDE_PATH) \
$(LOCAL_PATH)/../auto \ $(LOCAL_PATH)/../auto \
$(LOCAL_PATH)/../manual \ $(LOCAL_PATH)/../manual \
$(LOCAL_PATH)/../manual/cocos2d \ $(LOCAL_PATH)/../manual/cocos2d \
@ -186,5 +196,5 @@ LOCAL_STATIC_LIBRARIES := cocos2dx_static
include $(BUILD_STATIC_LIBRARY) include $(BUILD_STATIC_LIBRARY)
$(call import-module,lua/luajit/prebuilt/android) $(call import-module,$(LUA_IMPORT_PATH))
$(call import-module,.) $(call import-module,.)

View File

@ -1,5 +1,5 @@
{ {
"version":"v3-deps-101", "version":"v3-deps-103",
"zip_file_size":"128440074", "zip_file_size":"128440074",
"repo_name":"cocos2d-x-3rd-party-libs-bin", "repo_name":"cocos2d-x-3rd-party-libs-bin",
"repo_parent":"https://github.com/cocos2d/", "repo_parent":"https://github.com/cocos2d/",

View File

@ -2,6 +2,8 @@ APP_STL := gnustl_static
APP_CPPFLAGS := -frtti -DCC_ENABLE_CHIPMUNK_INTEGRATION=1 -std=c++11 -fsigned-char APP_CPPFLAGS := -frtti -DCC_ENABLE_CHIPMUNK_INTEGRATION=1 -std=c++11 -fsigned-char
APP_LDFLAGS := -latomic APP_LDFLAGS := -latomic
#APP_ABI := arm64-v8a
APP_ABI := armeabi APP_ABI := armeabi

View File

@ -3,8 +3,10 @@ APP_STL := gnustl_static
APP_CPPFLAGS := -frtti -DCC_ENABLE_CHIPMUNK_INTEGRATION=1 -std=c++11 -fsigned-char APP_CPPFLAGS := -frtti -DCC_ENABLE_CHIPMUNK_INTEGRATION=1 -std=c++11 -fsigned-char
APP_LDFLAGS := -latomic APP_LDFLAGS := -latomic
#APP_ABI := arm64-v8a
APP_ABI := armeabi APP_ABI := armeabi
ifeq ($(NDK_DEBUG),1) ifeq ($(NDK_DEBUG),1)
APP_CPPFLAGS += -DCOCOS2D_DEBUG=1 APP_CPPFLAGS += -DCOCOS2D_DEBUG=1
APP_OPTIM := debug APP_OPTIM := debug

View File

@ -3,6 +3,7 @@ APP_STL := gnustl_static
APP_CPPFLAGS := -frtti -DCC_ENABLE_CHIPMUNK_INTEGRATION=1 -std=c++11 -fsigned-char APP_CPPFLAGS := -frtti -DCC_ENABLE_CHIPMUNK_INTEGRATION=1 -std=c++11 -fsigned-char
APP_LDFLAGS := -latomic APP_LDFLAGS := -latomic
APP_ABI := armeabi APP_ABI := armeabi
#APP_ABI := arm64-v8a
ifeq ($(NDK_DEBUG),1) ifeq ($(NDK_DEBUG),1)
APP_CPPFLAGS += -DCOCOS2D_DEBUG=1 APP_CPPFLAGS += -DCOCOS2D_DEBUG=1

View File

@ -6,6 +6,8 @@ APP_STL := gnustl_static
APP_CPPFLAGS := -frtti -DCC_ENABLE_CHIPMUNK_INTEGRATION=1 -std=c++11 -fsigned-char APP_CPPFLAGS := -frtti -DCC_ENABLE_CHIPMUNK_INTEGRATION=1 -std=c++11 -fsigned-char
APP_LDFLAGS := -latomic APP_LDFLAGS := -latomic
APP_ABI := armeabi APP_ABI := armeabi
#APP_ABI := arm64-v8a
ifeq ($(NDK_DEBUG),1) ifeq ($(NDK_DEBUG),1)
APP_CPPFLAGS += -DCOCOS2D_DEBUG=1 APP_CPPFLAGS += -DCOCOS2D_DEBUG=1

View File

@ -3,6 +3,7 @@ APP_STL := gnustl_static
APP_CPPFLAGS := -frtti -DCC_ENABLE_CHIPMUNK_INTEGRATION=1 -std=c++11 -fsigned-char APP_CPPFLAGS := -frtti -DCC_ENABLE_CHIPMUNK_INTEGRATION=1 -std=c++11 -fsigned-char
APP_LDFLAGS := -latomic APP_LDFLAGS := -latomic
APP_ABI := armeabi APP_ABI := armeabi
#APP_ABI := arm64-v8a
ifeq ($(NDK_DEBUG),1) ifeq ($(NDK_DEBUG),1)

View File

@ -3,6 +3,8 @@ APP_STL := gnustl_static
APP_CPPFLAGS := -frtti -DCC_ENABLE_CHIPMUNK_INTEGRATION=1 -std=c++11 -fsigned-char APP_CPPFLAGS := -frtti -DCC_ENABLE_CHIPMUNK_INTEGRATION=1 -std=c++11 -fsigned-char
APP_LDFLAGS := -latomic APP_LDFLAGS := -latomic
APP_ABI := armeabi APP_ABI := armeabi
#APP_ABI := arm64-v8a
ifeq ($(NDK_DEBUG),1) ifeq ($(NDK_DEBUG),1)
APP_CPPFLAGS += -DCOCOS2D_DEBUG=1 APP_CPPFLAGS += -DCOCOS2D_DEBUG=1