cocos2d-x移植android的编译列出cpp文件

   cocos2d-x移植android的时候需要通过Android.mk编译jni,在jni下有个list.sh文件,在shell中执行以下命令即可列出cpp文件。

./list.sh ../../Classes

如下:

MAC:jni mutoo$ ./list.sh ../../Classes
../../Classes/AppDelegate.cpp \
../../Classes/Layer/GameLayerPlus.cpp \
../../Classes/Layer/MainLayer.cpp \
../../Classes/Layer/MenuLayer.cpp \
../../Classes/Layer/ModeLayer.cpp \
../../Classes/Layer/PauseLayer.cpp \
../../Classes/Layer/ResultLayer.cpp \
../../Classes/Layer/ScoreLayer.cpp \
../../Classes/Layer/SplashLayer.cpp \
../../Classes/Layer/TimerLayer.cpp \
../../Classes/Menu/ConfigMenu.cpp \
../../Classes/Menu/MainMenu.cpp \
../../Classes/Menu/ModeMenu.cpp \
../../Classes/Menu/PauseMenu.cpp \
../../Classes/Scene/GameScene.cpp \
../../Classes/Scene/MainMenuScene.cpp \


拷贝以上列表到Android.mk中即可,如果jni下没有,可以在附件中下载

本文出自 “Mr.Xu” 博客,请务必保留此出处http://xuzhiwei.blog.51cto.com/978424/1357298

郑重声明:本站内容如果来自互联网及其他传播媒体,其版权均属原媒体及文章作者所有。转载目的在于传递更多信息及用于网络分享,并不代表本站赞同其观点和对其真实性负责,也不构成任何其他建议。