mirror of https://github.com/axmolengine/axmol.git
[android] fixed #477: set default ndk version to ndk-r5
This commit is contained in:
parent
b61c019b2c
commit
bb4fc1c446
|
@ -1,5 +1,5 @@
|
|||
# set params
|
||||
ANDROID_NDK_ROOT=/cygdrive/e/android-ndk-r4-crystax
|
||||
ANDROID_NDK_ROOT=/cygdrive/e/android-ndk-r5
|
||||
COCOS2DX_ROOT=/cygdrive/d/Work7/cocos2d-x
|
||||
HELLOWORLD_ROOT=$COCOS2DX_ROOT/HelloWorld/android
|
||||
|
||||
|
|
|
@ -11,15 +11,18 @@ LOCAL_C_INCLUDES := $(LOCAL_PATH)/../../../../cocos2dx \
|
|||
$(LOCAL_PATH)/../../../../cocos2dx/include \
|
||||
$(LOCAL_PATH)/../../../../CocosDenshion/include \
|
||||
$(LOCAL_PATH)/../../..
|
||||
|
||||
LOCAL_LDLIBS := -L$(LOCAL_PATH)/../../libs/armeabi -lcocos2d -llog -lcocosdenshion \
|
||||
-L$(LOCAL_PATH)/../../../../cocos2dx/platform/third_party/android/libraries -lcurl
|
||||
|
||||
# it is used for ndk-r5
|
||||
# it is used for ndk-r4
|
||||
# if you build with nkd-r4, uncomment it
|
||||
# LOCAL_LDLIBS := -L$(LOCAL_PATH)/../../libs/armeabi -lcocos2d -llog -lcocosdenshion \
|
||||
# -L$(LOCAL_PATH)/../../../../cocos2dx/platform/third_party/android/libraries -lcurl
|
||||
|
||||
# it is used for ndk-r5
|
||||
# if you build with ndk-r4, comment it
|
||||
# because the new Windows toolchain doesn't support Cygwin's drive
|
||||
# mapping (i.e /cygdrive/c/ instead of C:/)
|
||||
# LOCAL_LDLIBS := -L$(call host-path, $(LOCAL_PATH)/../../libs/armeabi) \
|
||||
# -lcocos2d -llog -lcocosdenshion \
|
||||
# -L$(call host-path, $(LOCAL_PATH)/../../../../cocos2dx/platform/third_party/android/libraries) -lcurl
|
||||
LOCAL_LDLIBS := -L$(call host-path, $(LOCAL_PATH)/../../libs/armeabi) \
|
||||
-lcocos2d -llog -lcocosdenshion \
|
||||
-L$(call host-path, $(LOCAL_PATH)/../../../../cocos2dx/platform/third_party/android/libraries) -lcurl
|
||||
|
||||
include $(BUILD_SHARED_LIBRARY)
|
|
@ -117,23 +117,25 @@ LOCAL_C_INCLUDES := $(LOCAL_PATH)/ \
|
|||
$(LOCAL_PATH)/platform/third_party/android/skia/views \
|
||||
$(LOCAL_PATH)/platform/third_party/android/skia/xml
|
||||
|
||||
#it is used for ndk-r4
|
||||
LOCAL_LDLIBS := -L$(LOCAL_PATH)/platform/third_party/android/libraries \
|
||||
-lGLESv1_CM -llog -lz \
|
||||
-lpng \
|
||||
-lxml2 \
|
||||
-ljpeg \
|
||||
-lskia
|
||||
# it is used for ndk-r4
|
||||
# if you build with nkd-r4, uncomment it
|
||||
# LOCAL_LDLIBS := -L$(LOCAL_PATH)/platform/third_party/android/libraries \
|
||||
# -lGLESv1_CM -llog -lz \
|
||||
# -lpng \
|
||||
# -lxml2 \
|
||||
# -ljpeg \
|
||||
# -lskia
|
||||
|
||||
# it is used for ndk-r5
|
||||
# it is used for ndk-r5
|
||||
# if you build with ndk-r4, comment it
|
||||
# because the new Windows toolchain doesn't support Cygwin's drive
|
||||
# mapping (i.e /cygdrive/c/ instead of C:/)
|
||||
# LOCAL_LDLIBS := -L$(call host-path, $(LOCAL_PATH)/platform/third_party/android/libraries) \
|
||||
# -lGLESv1_CM -llog -lz \
|
||||
# -lpng \
|
||||
# -lxml2 \
|
||||
# -ljpeg \
|
||||
# -lskia
|
||||
LOCAL_LDLIBS := -L$(call host-path, $(LOCAL_PATH)/platform/third_party/android/libraries) \
|
||||
-lGLESv1_CM -llog -lz \
|
||||
-lpng \
|
||||
-lxml2 \
|
||||
-ljpeg \
|
||||
-lskia
|
||||
|
||||
# define the macro to compile through support/zip_support/ioapi.c
|
||||
LOCAL_CFLAGS := -DUSE_FILE32API
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
# set params
|
||||
ANDROID_NDK_ROOT=/cygdrive/e/android-ndk-r4-crystax
|
||||
ANDROID_NDK_ROOT=/cygdrive/e/android-ndk-r5
|
||||
COCOS2DX_ROOT=/cygdrive/d/Work7/cocos2d-x
|
||||
TESTS_ROOT=$COCOS2DX_ROOT/tests/test.android
|
||||
|
||||
|
|
|
@ -82,21 +82,23 @@ LOCAL_C_INCLUDES := $(LOCAL_PATH)/../../../../cocos2dx \
|
|||
$(LOCAL_PATH)/../../../../CocosDenshion/include
|
||||
|
||||
# it is used for ndk-r4
|
||||
LOCAL_LDLIBS := -L$(LOCAL_PATH)/../../libs/armeabi \
|
||||
-lGLESv1_CM \
|
||||
-lcocos2d -lcocosdenshion -llog \
|
||||
-lbox2d -lchipmunk \
|
||||
-L$(LOCAL_PATH)/../../../../cocos2dx/platform/third_party/android/libraries -lcurl
|
||||
# if you build with nkd-r4, uncomment it
|
||||
# LOCAL_LDLIBS := -L$(LOCAL_PATH)/../../libs/armeabi \
|
||||
# -lGLESv1_CM \
|
||||
# -lcocos2d -lcocosdenshion -llog \
|
||||
# -lbox2d -lchipmunk \
|
||||
# -L$(LOCAL_PATH)/../../../../cocos2dx/platform/third_party/android/libraries -lcurl
|
||||
|
||||
|
||||
# it is used for ndk-r5
|
||||
# if you build with ndk-r4, comment it
|
||||
# because the new Windows toolchain doesn't support Cygwin's drive
|
||||
# mapping (i.e /cygdrive/c/ instead of C:/)
|
||||
#LOCAL_LDLIBS := -L$(call host-path, $(LOCAL_PATH)/../../libs/armeabi) \
|
||||
# -lGLESv1_CM \
|
||||
# -lcocos2d -llog -lcocosdenshion \
|
||||
# -lbox2d -lchipmunk \
|
||||
# -L$(call host-path, $(LOCAL_PATH)/../../../../cocos2dx/platform/third_party/android/libraries) -lcurl
|
||||
LOCAL_LDLIBS := -L$(call host-path, $(LOCAL_PATH)/../../libs/armeabi) \
|
||||
-lGLESv1_CM \
|
||||
-lcocos2d -llog -lcocosdenshion \
|
||||
-lbox2d -lchipmunk \
|
||||
-L$(call host-path, $(LOCAL_PATH)/../../../../cocos2dx/platform/third_party/android/libraries) -lcurl
|
||||
|
||||
include $(BUILD_SHARED_LIBRARY)
|
||||
|
||||
|
|
Loading…
Reference in New Issue