码迷,mamicode.com
首页 > 移动开发 > 详细

cocos2dx android mk解释

时间:2014-07-17 19:33:26      阅读:286      评论:0      收藏:0      [点我收藏+]

标签:cocos2dx mk

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/Card.cpp \

                   ../../Classes/GameOverLayer.cpp \

                   ../../Classes/GameScene.cpp \

                   ../../Classes/HighScore.cpp \

                   ../../Classes/PopLayer.cpp \

                   ../../Classes/SimpleRecognizer.cpp

#c/C++头文件包含路径

LOCAL_C_INCLUDES := $(LOCAL_PATH)/../../Classes

#引用的静态链接库

LOCAL_WHOLE_STATIC_LIBRARIES := cocos2dx_static

LOCAL_WHOLE_STATIC_LIBRARIES += cocosdenshion_static

LOCAL_WHOLE_STATIC_LIBRARIES += box2d_static


#编译成动态库

include $(BUILD_SHARED_LIBRARY)

#导入外部模块的.mk文件 ,和 include基本一样  import-module是指ndk_module_path设置的路径(包含应用的路径)(-x在build_native.py中设置(ndk_module_path = ‘NDK_MODULE_PATH=%s;%s/external;%s/cocos‘ % (cocos_root, cocos_root, cocos_root)))

$(call import-module,2d)

$(call import-module,audio/android)

$(call import-module,Box2D)


cocos2dx android mk解释,布布扣,bubuko.com

cocos2dx android mk解释

标签:cocos2dx mk

原文地址:http://xuguohongai.blog.51cto.com/4291348/1439620

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!