关于cocos2dx的Android的移植的MK文件问题

关于cocos2dx的Android的移植的MK文件问题,第1张

概述之前在网上找了一些通用的MK文件,但是移植的时候,一直提示FIND参数格式不正确,然后花了一晚的时间,从某某博客解决了这个问题,下边贴出来这个文件: LOCAL_PATH := $(call my-dir)include $(CLEAR_VARS)$(call import-add-path,$(LOCAL_PATH)/../../cocos2d)$(call import-add-pa

之前在网上找了一些通用的MK文件,但是移植的时候,一直提示FIND参数格式不正确,然后花了一晚的时间,从某某博客解决了这个问题,下边贴出来这个文件:

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/extensions)LOCAL_MODulE := cocos2dcpp_sharedLOCAL_MODulE_filename := libcocos2dcpp# #################################################################define walk      $(wildcard $(1))$(foreach e,$(wildcard $(1)/*),$(call walk,$(e)))  endef  ALLfileS = $(call walk,$(LOCAL_PATH)/../../Classes)     file_List := hellocpp/main.cpp  file_List += $(filter %.cpp,$(ALLfileS))  LOCAL_SRC_fileS := $(file_List:$(LOCAL_PATH)/%=%)# file_INCLUDES := $(shell find $(LOCAL_PATH)/../../Classes -type d) ################################################################网上某个大神写的,能够遍历出来目录rwildcard=$(wildcard ) $(foreach d,$(wildcard *),$(call rwildcard,$d/,)) APP_fileS_PATH  :=  $(LOCAL_PATH) $(LOCAL_PATH)/../../Classes  APP_ALL_Dirs := $(dir $(foreach src_path,$(APP_fileS_PATH),$(src_path),*/) ) ) APP_ALL_Dirs := $(call uniq,$(APP_ALL_Dirs)) LOCAL_C_INCLUDES := $(APP_ALL_Dirs)#之前一直用这种方式# LOCAL_C_INCLUDES := $(LOCAL_PATH)/../../Classes \# $(LOCAL_PATH)/../../Util \# $(LOCAL_PATH)/../../GameDataObj $(info [**********Find Directory**************])$(info $(LOCAL_C_INCLUDES))$(info [**********Find Directory**************])####################################################################LOCAL_WHolE_STATIC_liBRARIES := cocos2dx_staticLOCAL_WHolE_STATIC_liBRARIES += cocosdenshion_staticLOCAL_WHolE_STATIC_liBRARIES += cocos_extension_staticLOCAL_WHolE_STATIC_liBRARIES += cocosbuilder_static# LOCAL_WHolE_STATIC_liBRARIES += Box2d_static# LOCAL_WHolE_STATIC_liBRARIES += spine_staticLOCAL_WHolE_STATIC_liBRARIES += cocostudio_static# LOCAL_WHolE_STATIC_liBRARIES += cocos_network_staticLOCAL_WHolE_STATIC_liBRARIES += cocos_extension_staticinclude $(BUILD_SHARED_liBRARY)$(call import-module,.)$(call import-module,audio/androID)$(call import-module,extensions)$(call import-module,editor-support/cocosbuilder)# $(call import-module,Box2D)$(call import-module,editor-support/spine)$(call import-module,editor-support/cocostudio)# $(call import-module,network)
总结

以上是内存溢出为你收集整理的关于cocos2dx的Android的移植的MK文件问题全部内容,希望文章能够帮你解决关于cocos2dx的Android的移植的MK文件问题所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

欢迎分享,转载请注明来源:内存溢出

原文地址: http://outofmemory.cn/web/1004656.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-05-22
下一篇 2022-05-22

发表评论

登录后才能评论

评论列表(0条)

保存