[android] HelloLua use shared link with other libraries

This commit is contained in:
Walzer 2011-06-25 11:57:34 +08:00
parent 00568c229a
commit fbcb3806d9
3 changed files with 7 additions and 9 deletions

View File

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

View File

@ -30,12 +30,10 @@ LOCAL_C_INCLUDES := $(LOCAL_PATH)/../../../../cocos2dx \
# 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 := -llog -lGLESv1_CM -llog -lz \
-L$(call host-path, $(LOCAL_PATH)/../../../../cocos2dx/platform/third_party/android/libraries) -lcurl \
-lpng \
-lxml2 \
-ljpeg
LOCAL_STATIC_LIBRARIES := libcocos2d libcocosdenshion liblua
LOCAL_LDLIBS := -L$(call host-path, $(LOCAL_PATH)/../../libs/armeabi) \
-L$(call host-path, $(LOCAL_PATH)/../../../../cocos2dx/platform/third_party/android/libraries) -lcurl \
-lcocos2d \
-lcocosdenshion \
-llua
include $(BUILD_SHARED_LIBRARY)

View File

@ -46,4 +46,4 @@ LOCAL_C_INCLUDES := $(LOCAL_PATH)/ \
$(LOCAL_PATH)/../../lua
include $(BUILD_STATIC_LIBRARY)
include $(BUILD_SHARED_LIBRARY)