axmol/cocos/platform/android/CMakeLists.txt

26 lines
544 B
CMake
Raw Normal View History

2019-11-23 20:27:39 +08:00
# need to whole-archive this lib
set(target_name cpp_android_spec)
project(${target_name})
set(${target_name}_src
CCDevice-android.cpp
javaactivity-android.cpp
jni/JniHelper.cpp
jni/TouchesJni.cpp
jni/Java_org_cocos2dx_lib_Cocos2dxAccelerometer.cpp
jni/Java_org_cocos2dx_lib_Cocos2dxBitmap.cpp
jni/Java_org_cocos2dx_lib_Cocos2dxHelper.cpp
jni/Java_org_cocos2dx_lib_Cocos2dxRenderer.cpp
)
add_library(${target_name} STATIC
${${target_name}_src}
)
target_include_directories(${target_name}
PRIVATE ..
PRIVATE ../..
)