2018-09-25 11:16:04 +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 ../..
|
2021-07-15 23:31:49 +08:00
|
|
|
PRIVATE ../../../thirdparty
|
2018-09-25 11:16:04 +08:00
|
|
|
)
|
|
|
|
|