Cocos headers for Android GD Modding. Taken from iAndyHD3's repo and made a separate repo for convenience. The original headers belong to IAD.
- It's recommended to add this as a submodule like this:
git submodule add https://github.com/JaanDev/android-cocos-headers.git libs/cocos2d
- Then in your
CMakeLists.txt
:add_subdirectory(libs/cocos2d)
andtarget_link_libraries(your_project_name cocos2d)
- Copy the game's
.so
file (libcocos2dcpp.so
) to the parent directory of where you cloned the submodule (for example, if you cloned tolibs/cocos2d
as in my example, you should copy thelibcocos2dcpp.so
to thelibs
directory). This is done to not to distribute the game's binary.
My Discord: jaan2897