使用cocostudio 需要在Android.mk文件的配置

直接贴上Android.mk文件吧。

 

对了,是cocos2d3.0的,不知道2.x是否一样。

 

 

LOCAL_PATH := $(call my-dir)

include $(CLEAR_VARS)

LOCAL_MODULE := cocos2dcpp_shared

LOCAL_MODULE_FILENAME := libcocos2dcpp

LOCAL_SRC_FILES := hellocpp/main.cpp \
                   ../../Classes/AppDelegate.cpp \
                   ../../Classes/HelloWorldScene.cpp \
                   ../../Classes/Block.cpp \
                   ../../Classes/MenuScene.cpp \
                   ../../Classes/GameFinish.cpp \
                   ../../Classes/StreetGameScene.cpp \
                   ../../Classes/CanGameScene.cpp \
                   ../../Classes/GameData.cpp \
                   ../../Classes/GameScene.cpp \
                   ../../Classes/BeginScene.cpp
                   

LOCAL_C_INCLUDES := $(LOCAL_PATH)/../../Classes \
					$(LOCAL_PATH)/../../cocos2d/cocos/editor-support/cocostudio \
					$(LOCAL_PATH)/../../cocos2d/cocos/editor-support \
					$(LOCAL_PATH)/../../cocos2d/extensions \
					$(LOCAL_PATH)/../../cocos2d/cocos/ui \
					$(LOCAL_PATH)/../../cocos2d/cocos


LOCAL_WHOLE_STATIC_LIBRARIES := cocos2dx_static
LOCAL_WHOLE_STATIC_LIBRARIES += cocosdenshion_static
LOCAL_WHOLE_STATIC_LIBRARIES += box2d_static
LOCAL_WHOLE_STATIC_LIBRARIES += cocostudio_static
LOCAL_WHOLE_STATIC_LIBRARIES += cocos_gui_static
LOCAL_WHOLE_STATIC_LIBRARIES += cocos_extension_static



include $(BUILD_SHARED_LIBRARY)

$(call import-module,2d)
$(call import-module,audio/android)
$(call import-module,Box2D)
$(call import-module,editor-support/cocostudio)
$(call import-module,extensions)

 

posted @ 2014-07-29 14:27  wfh1988  阅读(865)  评论(0编辑  收藏  举报