2018-09-25 11:16:04 +08:00
|
|
|
|
|
|
|
# need to whole-archive this lib
|
|
|
|
set(target_name lua_android_spec)
|
|
|
|
|
|
|
|
project(${target_name})
|
|
|
|
|
|
|
|
set(${target_name}_src
|
|
|
|
../manual/platform/android/CCLuaJavaBridge.cpp
|
2019-05-14 08:59:29 +08:00
|
|
|
../manual/platform/android/jni/Cocos2dxLuaJavaBridge.cpp
|
2018-09-25 11:16:04 +08:00
|
|
|
)
|
|
|
|
|
|
|
|
add_library(${target_name} STATIC
|
|
|
|
${${target_name}_src}
|
|
|
|
)
|
|
|
|
|
2020-10-19 23:21:40 +08:00
|
|
|
get_target_property(lua_header ${LUA_ENGINE} INTERFACE_INCLUDE_DIRECTORIES)
|
2020-10-19 19:56:48 +08:00
|
|
|
get_target_property(tolua_header tolua INTERFACE_INCLUDE_DIRECTORIES)
|
2018-09-25 11:16:04 +08:00
|
|
|
target_include_directories(${target_name}
|
|
|
|
PRIVATE ../../..
|
|
|
|
PRIVATE ../manual
|
|
|
|
PRIVATE ../manual/platform/android
|
|
|
|
PRIVATE ${lua_header}
|
|
|
|
PRIVATE ${tolua_header}
|
2020-10-19 19:56:48 +08:00
|
|
|
PRIVATE ../../../../cocos
|
2018-09-25 11:16:04 +08:00
|
|
|
)
|
|
|
|
|