评论

收藏

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

游戏开发 游戏开发 发布于:2021-06-27 15:15 | 阅读数:192 | 评论:0

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下没有,可以在附件中下载
关注下面的标签,发现更多相似文章