首页 > 代码库 > 使用cocostudio 需要在Android.mk文件的配置

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

直接贴上Android.mk文件吧。

 

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

 

 

LOCAL_PATH := $(call my-dir)include $(CLEAR_VARS)LOCAL_MODULE := cocos2dcpp_sharedLOCAL_MODULE_FILENAME := libcocos2dcppLOCAL_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/cocosLOCAL_WHOLE_STATIC_LIBRARIES := cocos2dx_staticLOCAL_WHOLE_STATIC_LIBRARIES += cocosdenshion_staticLOCAL_WHOLE_STATIC_LIBRARIES += box2d_staticLOCAL_WHOLE_STATIC_LIBRARIES += cocostudio_staticLOCAL_WHOLE_STATIC_LIBRARIES += cocos_gui_staticLOCAL_WHOLE_STATIC_LIBRARIES += cocos_extension_staticinclude $(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)