Merge pull request #322 from minggo/iss538

[Android] modify android template to work on new codes
This commit is contained in:
Walzer 2011-06-24 03:02:17 -07:00
commit 8f4b20391e
3 changed files with 15 additions and 8 deletions

View File

@ -15,7 +15,7 @@ LOCAL_C_INCLUDES := $(LOCAL_PATH)/../../../../cocos2dx \
# it is used for ndk-r4 # it is used for ndk-r4
# if you build with nkd-r4, uncomment it # if you build with nkd-r4, uncomment it
# LOCAL_LDLIBS := -llog -lGLESv1_CM -llog -lz \ # LOCAL_LDLIBS := -llog -lGLESv1_CM -lz \
# -L$(LOCAL_PATH)/../../../../cocos2dx/platform/third_party/android/libraries -lcurl \ # -L$(LOCAL_PATH)/../../../../cocos2dx/platform/third_party/android/libraries -lcurl \
# -lpng \ # -lpng \
# -lxml2 \ # -lxml2 \
@ -25,7 +25,7 @@ LOCAL_C_INCLUDES := $(LOCAL_PATH)/../../../../cocos2dx \
# if you build with ndk-r4, comment it # if you build with ndk-r4, comment it
# because the new Windows toolchain doesn't support Cygwin's drive # because the new Windows toolchain doesn't support Cygwin's drive
# mapping (i.e /cygdrive/c/ instead of C:/) # mapping (i.e /cygdrive/c/ instead of C:/)
LOCAL_LDLIBS := -llog -lGLESv1_CM -llog -lz \ LOCAL_LDLIBS := -llog -lGLESv1_CM -lz \
-L$(call host-path, $(LOCAL_PATH)/../../../../cocos2dx/platform/third_party/android/libraries) -lcurl \ -L$(call host-path, $(LOCAL_PATH)/../../../../cocos2dx/platform/third_party/android/libraries) -lcurl \
-lpng \ -lpng \
-lxml2 \ -lxml2 \

View File

@ -14,15 +14,22 @@ LOCAL_C_INCLUDES := $(LOCAL_PATH)/../../../../cocos2dx \
# it is used for ndk-r4 # it is used for ndk-r4
# if you build with nkd-r4, uncomment it # if you build with nkd-r4, uncomment it
# LOCAL_LDLIBS := -L$(LOCAL_PATH)/../../libs/armeabi -lcocos2d -llog -lcocosdenshion \ # LOCAL_LDLIBS := -llog -lGLESv1_CM -lz \
# -L$(LOCAL_PATH)/../../../../cocos2dx/platform/third_party/android/libraries -lcurl # -L$(LOCAL_PATH)/../../../../cocos2dx/platform/third_party/android/libraries -lcurl \
# -lpng \
# -lxml2 \
# -ljpeg
# it is used for ndk-r5 # it is used for ndk-r5
# if you build with ndk-r4, comment it # if you build with ndk-r4, comment it
# because the new Windows toolchain doesn't support Cygwin's drive # because the new Windows toolchain doesn't support Cygwin's drive
# mapping (i.e /cygdrive/c/ instead of C:/) # mapping (i.e /cygdrive/c/ instead of C:/)
LOCAL_LDLIBS := -L$(call host-path, $(LOCAL_PATH)/../../libs/armeabi) \ LOCAL_LDLIBS := -llog -lGLESv1_CM -lz \
-lcocos2d -llog -lcocosdenshion \ -L$(call host-path, $(LOCAL_PATH)/../../../../cocos2dx/platform/third_party/android/libraries) -lcurl \
-L$(call host-path, $(LOCAL_PATH)/../../../../cocos2dx/platform/third_party/android/libraries) -lcurl -lpng \
-lxml2 \
-ljpeg
LOCAL_STATIC_LIBRARIES := libcocos2d libcocosdenshion
include $(BUILD_SHARED_LIBRARY) include $(BUILD_SHARED_LIBRARY)

View File

@ -1,3 +1,3 @@
# it is needed for ndk-r5 # it is needed for ndk-r5
APP_STL := stlport_static APP_STL := stlport_static
APP_MODULES := cocos2d cocosdenshion game APP_MODULES := game