diff --git a/HelloLua/android/jni/Application.mk b/HelloLua/android/jni/Application.mk index f240662d57..ffaaa6b6e3 100644 --- a/HelloLua/android/jni/Application.mk +++ b/HelloLua/android/jni/Application.mk @@ -1,3 +1,3 @@ # it is needed for ndk-r5 APP_STL := stlport_static -APP_MODULES := game \ No newline at end of file +APP_MODULES := cocos2d cocosdenshion lua game \ No newline at end of file diff --git a/HelloLua/android/jni/helloworld/Android.mk b/HelloLua/android/jni/helloworld/Android.mk index 4552da6783..81fe45355d 100644 --- a/HelloLua/android/jni/helloworld/Android.mk +++ b/HelloLua/android/jni/helloworld/Android.mk @@ -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) \ No newline at end of file diff --git a/lua/proj.android/jni/Android.mk b/lua/proj.android/jni/Android.mk index 845f7e346e..049ba99872 100644 --- a/lua/proj.android/jni/Android.mk +++ b/lua/proj.android/jni/Android.mk @@ -46,4 +46,4 @@ LOCAL_C_INCLUDES := $(LOCAL_PATH)/ \ $(LOCAL_PATH)/../../lua -include $(BUILD_STATIC_LIBRARY) +include $(BUILD_SHARED_LIBRARY)