Skip to content

Instantly share code, notes, and snippets.

@ugonight
Last active January 4, 2019 13:03
Show Gist options
  • Save ugonight/ce691f4a4d957052276ef63190bd5e68 to your computer and use it in GitHub Desktop.
Save ugonight/ce691f4a4d957052276ef63190bd5e68 to your computer and use it in GitHub Desktop.
AndroidStudio&cmakeでcocos2d-xをビルドする ref: https://qiita.com/ugonight_nanase/items/0cab13437dfa2ae003bd
# add cross-platforms source files and header files
# list(APPEND GAME_SOURCE
# Classes/AppDelegate.cpp
# Classes/HelloWorldScene.cpp
# )
file(GLOB_RECURSE GAME_SOURCE RELATIVE ${CMAKE_SOURCE_DIR} CONFIGURE_DEPENDS "Classes/*.cpp")
# list(APPEND GAME_HEADER
# Classes/AppDelegate.h
# Classes/HelloWorldScene.h
# )
file(GLOB_RECURSE GAME_HEADER RELATIVE ${CMAKE_SOURCE_DIR} CONFIGURE_DEPENDS "Classes/*.h")
# android native code build type
# none, native code will never be compiled.
# cmake, native code will be compiled by CMakeLists.txt
# ndk-build, native code will be compiled by Android.mk
PROP_BUILD_TYPE=cmake
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment