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

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

上一篇:微信小程序封装缓存过期时间


下一篇:一个手机控制网页的例子