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

cocos2d-x项目中如何避免增加一个cpp就必须在工程android.mk文件去添加引用

时间:2015-10-05 16:50:59      阅读:134      评论:0      收藏:0      [点我收藏+]

标签:

LOCAL_SRC_FILES := hellocpp/main.cpp \

                       ../../Classes/AppDelegate.cpp \                   

           ../../Classes/HelloWorldScene.cpp

只要把上面这些替换成下面的:

SRC_FILES := hellocpp/main.cpp

SRC_FILES += $(wildcard $(LOCAL_PATH)/../../Classes/*.cpp)

SRC_FILES += $(wildcard $(LOCAL_PATH)/../../Classes/*/*.cpp)

SRC_FILES += $(wildcard $(LOCAL_PATH)/../../Classes/*/*/*.cpp)

SRC_FILES += $(wildcard $(LOCAL_PATH)/../../Classes/*/*/*/*.cpp)

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

 

 

转载自 http://www.cnblogs.com/Colored-Mr/p/4721073.html

cocos2d-x项目中如何避免增加一个cpp就必须在工程android.mk文件去添加引用

标签:

原文地址:http://www.cnblogs.com/H-K-Home/p/4855865.html

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