编辑androID.mk文件,替换为如下内容
?
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 | LOCAL_PATH := $(call my-dir) LOCAL_PATH := $(call my-dir) include $(CLEAR_VARS) LOCAL_MODulE := cocos2dcpp_shared LOCAL_MODulE_filename := libcocos2dcpp file_List := hellocpp/main.cpp file_List += $(wildcard $(LOCAL_PATH)/../../Classes/*.cpp) LOCAL_SRC_fileS := $(file_List:$(LOCAL_PATH)/%=%) LOCAL_C_INCLUDES := $(LOCAL_PATH)/../../Classes LOCAL_WHolE_STATIC_liBRARIES += cocos2dx_static LOCAL_WHolE_STATIC_liBRARIES += cocosdenshion_static LOCAL_WHolE_STATIC_liBRARIES += Box2d_static LOCAL_WHolE_STATIC_liBRARIES += chipmunk_static LOCAL_WHolE_STATIC_liBRARIES += cocos_extension_static include $(BUILD_SHARED_liBRARY) $(call import -module,cocos2dx) |
评论列表(0条)