1 Star 0 Fork 66

Adrian/cocos2dx_2

forked from Okkkkkk/cocos2dx_2 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
README.cmake 1.02 KB
一键复制 编辑 原始数据 按行查看 历史
Ricardo Quesada 提交于 2014-11-05 10:26 . fixes types in readme
CMake Build Instructions
NB. Depending on your host system your Generator flag -G may be different
Typical -G options
For using gcc and clang from a makefile
msys2 = "MSYS Makefiles"
windows = "MinGW Makefiles"
nix and mac = "Unix Makefiles"
For using and editor such as Visual Studio or xcode or sublime text there are different flags
To like all available flags for your system run
cmake --help
More Examples
mac build Instructions
cd cocos2d-x
mkdir macbuild && cd macbuild
cmake -G "Unix Makefiles" -DBUILD_CPP_TESTS=OFF -DBUILD_LUA_LIBS=OFF ..
Android Build Instructions
cd cocos2d-x
mkdir androidbuild && cd androidbuild
cmake -G"MSYS Makefiles" -DANDROID_NDK=/path/to/android-ndk-r9d -DANDROID_NATIVE_API_LEVEL=android-9 -DCMAKE_TOOLCHAIN_FILE=../cmake/android.toolchain.cmake ..
mingw64 with msys2 build Instructions
cd cocos2d-x
mkdir mingwbuild && cd mingwbuild
cmake -G "MSYS Makefiles" -DBUILD_CPP_TESTS=OFF -DBUILD_LUA_LIBS=OFF ..
todo: structure this document in markdown with better examples and more details
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/sonicxs/cocos2dx_2.git
git@gitee.com:sonicxs/cocos2dx_2.git
sonicxs
cocos2dx_2
cocos2dx_2
cocos2d-x-3.4-ohos

搜索帮助

D67c1975 1850385 1daf7b77 1850385