cocos2dx 打包,Android.mk包含编译文件的办法

前端之家收集整理的这篇文章主要介绍了cocos2dx 打包,Android.mk包含编译文件的办法前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。

LOCAL_SRC_FILES源文件包含:

MY_CPP_LIST := $(wildcard $(LOCAL_PATH)/../../Classes/*.cpp)

MY_CPP_LIST += $(wildcard $(LOCAL_PATH)/hellocpp/*.cpp)
MY_CPP_LIST += $(wildcard $(LOCAL_PATH)/../../Classes/UserUI/*.cpp)
MY_CPP_LIST += $(wildcard $(LOCAL_PATH)/../../Classes/Upgrade/*.cpp)
MY_CPP_LIST += $(wildcard $(LOCAL_PATH)/../../Classes/HtmlWidget/*.cpp)
MY_CPP_LIST += $(wildcard $(LOCAL_PATH)/../../Classes/Games/CrazyDiving/*.cpp)

LOCAL_SRC_FILES := $(MY_CPP_LIST:$(LOCAL_PATH)/%=%)


LOCAL_C_INCLUDES头文件包含:

LOCAL_C_INCLUDES := $(LOCAL_PATH)/../../Classes
LOCAL_C_INCLUDES += $(LOCAL_PATH)/../../Classes/UserUI
LOCAL_C_INCLUDES += $(LOCAL_PATH)/../../Classes/Upgrade
LOCAL_C_INCLUDES += $(LOCAL_PATH)/../../Classes/HtmlWidget

LOCAL_C_INCLUDES += $(LOCAL_PATH)/../../Classes/Games/CrazyDiving



这样写之后,只需要添加文件夹就好了~~

原文链接:https://www.f2er.com/cocos2dx/343138.html

猜你在找的Cocos2d-x相关文章