mirror of https://github.com/axmolengine/axmol.git
27 lines
662 B
CMake
27 lines
662 B
CMake
|
cmake_minimum_required(VERSION 3.6)
|
||
|
|
||
|
# need to whole-archive this lib
|
||
|
set(target_name lua_android_spec)
|
||
|
|
||
|
project(${target_name})
|
||
|
|
||
|
set(${target_name}_src
|
||
|
../manual/platform/android/CCLuaJavaBridge.cpp
|
||
|
../manual/platform/android/jni/Java_org_cocos2dx_lib_Cocos2dxLuaJavaBridge.cpp
|
||
|
)
|
||
|
|
||
|
add_library(${target_name} STATIC
|
||
|
${${target_name}_src}
|
||
|
)
|
||
|
|
||
|
get_target_property(lua_header ext_lua INTERFACE_INCLUDE_DIRECTORIES)
|
||
|
get_target_property(tolua_header ext_tolua INTERFACE_INCLUDE_DIRECTORIES)
|
||
|
target_include_directories(${target_name}
|
||
|
PRIVATE ../../..
|
||
|
PRIVATE ../manual
|
||
|
PRIVATE ../manual/platform/android
|
||
|
PRIVATE ${lua_header}
|
||
|
PRIVATE ${tolua_header}
|
||
|
)
|
||
|
|