android.mk里有这样配置:
LOCAL_PATH := $(call my-dir)include $(CLEAR_VARS)$(call import-add-path,$(LOCAL_PATH)/../../cocos2d)$(call import-add-path,$(LOCAL_PATH)/../../cocos2d/external)$(call import-add-path,$(LOCAL_PATH)/../../cocos2d/cocos)$(call import-add-path,$(LOCAL_PATH)/../../cocos2d/cocos/editor-support)LOCAL_MODULE := cocos2dcpp_sharedLOCAL_MODULE_FILENAME := libcocos2dcppLOCAL_SRC_FILES := hellocpp/main.cpp \ ../../Classes/AppDelegate.cpp \ ../../Classes/MainScene.cpp \ ../../Classes/GameMenuScene.cpp \ ../../Classes/HelloWorldScene.cpp \ ../../Classes/mylibs/FHelper.cpp \ ../../Classes/mylibs/MAnimate.cpp \ ../../Classes/mylibs/Node_ex.cpp \ ../../Classes/mylibs/ui/MyButton.cpp \ ../../Classes/PausePanel.cpp \ ../../Classes/GameOverPanel.cpp \ ../../Classes/Global.cpp \ ../../Classes/TopUI.cpp \ ../../Classes/MouseObj.cpp LOCAL_C_INCLUDES := $(LOCAL_PATH)/../../ClassesLOCAL_WHOLE_STATIC_LIBRARIES := cocos2dx_staticLOCAL_WHOLE_STATIC_LIBRARIES += cocosdenshion_static# LOCAL_WHOLE_STATIC_LIBRARIES += box2d_static# LOCAL_WHOLE_STATIC_LIBRARIES += cocosbuilder_static# LOCAL_WHOLE_STATIC_LIBRARIES += spine_staticLOCAL_WHOLE_STATIC_LIBRARIES += cocostudio_static# LOCAL_WHOLE_STATIC_LIBRARIES += cocos_network_static# LOCAL_WHOLE_STATIC_LIBRARIES += cocos_extension_staticinclude $(BUILD_SHARED_LIBRARY)$(call import-module,.)$(call import-module,audio/android)# $(call import-module,Box2D)# $(call import-module,editor-support/cocosbuilder)# $(call import-module,editor-support/spine)$(call import-module,editor-support/cocostudio)# $(call import-module,network)# $(call import-module,extensions)