2014-08-06 00:15:44 +08:00
|
|
|
#luacocos2d
|
|
|
|
set(LIBLUACOCOS2D_SRC
|
2014-03-10 17:10:08 +08:00
|
|
|
auto/lua_cocos2dx_auto.cpp
|
|
|
|
auto/lua_cocos2dx_physics_auto.cpp
|
2014-07-17 14:54:34 +08:00
|
|
|
auto/lua_cocos2dx_experimental_auto.cpp
|
2014-03-10 17:10:08 +08:00
|
|
|
manual/tolua_fix.cpp
|
|
|
|
manual/CCLuaBridge.cpp
|
|
|
|
manual/CCLuaEngine.cpp
|
|
|
|
manual/CCLuaStack.cpp
|
|
|
|
manual/CCLuaValue.cpp
|
|
|
|
manual/Cocos2dxLuaLoader.cpp
|
|
|
|
manual/LuaBasicConversions.cpp
|
2014-08-06 00:15:44 +08:00
|
|
|
manual/cocos2d/lua_cocos2dx_deprecated.cpp
|
|
|
|
manual/cocos2d/lua_cocos2dx_experimental_manual.cpp
|
|
|
|
manual/cocos2d/lua_cocos2dx_manual.cpp
|
|
|
|
manual/cocos2d/lua_cocos2dx_physics_manual.cpp
|
|
|
|
manual/cocos2d/LuaOpengl.cpp
|
|
|
|
manual/cocos2d/LuaScriptHandlerMgr.cpp
|
2014-03-10 17:10:08 +08:00
|
|
|
)
|
|
|
|
|
|
|
|
include_directories(
|
|
|
|
auto
|
|
|
|
manual
|
2014-08-06 00:15:44 +08:00
|
|
|
manual/cocos2d
|
|
|
|
manual/extension
|
|
|
|
manual/cocostudio
|
|
|
|
manual/ui
|
2014-06-24 10:12:32 +08:00
|
|
|
../../2d
|
|
|
|
../../3d
|
2014-08-06 00:15:44 +08:00
|
|
|
../../../extensions
|
2014-03-10 17:39:54 +08:00
|
|
|
../../../external/lua/lua
|
|
|
|
../../../external/lua/tolua
|
2014-06-04 11:50:04 +08:00
|
|
|
../../../external/xxtea
|
2014-03-10 17:10:08 +08:00
|
|
|
)
|
|
|
|
|
|
|
|
|
2014-08-06 00:15:44 +08:00
|
|
|
add_library(luacocos2d STATIC
|
|
|
|
${LIBLUACOCOS2D_SRC}
|
2014-03-10 17:10:08 +08:00
|
|
|
)
|
|
|
|
|
2014-08-06 00:15:44 +08:00
|
|
|
target_link_libraries(luacocos2d
|
2014-03-10 17:10:08 +08:00
|
|
|
tolua
|
|
|
|
lua
|
2014-06-04 11:50:04 +08:00
|
|
|
xxtea
|
2014-03-10 17:10:08 +08:00
|
|
|
)
|
|
|
|
|
2014-08-06 00:15:44 +08:00
|
|
|
set_target_properties(luacocos2d
|
|
|
|
PROPERTIES
|
|
|
|
ARCHIVE_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/lib"
|
|
|
|
LIBRARY_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/lib"
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
|
#luacocosdenshion
|
|
|
|
set(LIBLUACOCOSDENSHION_SRC
|
|
|
|
auto/lua_cocos2dx_cocosdenshion_auto.cpp
|
|
|
|
manual/cocosdenshion/lua_cocos2dx_cocosdenshion_manual.cpp
|
|
|
|
)
|
|
|
|
|
|
|
|
include_directories(
|
|
|
|
auto
|
|
|
|
manual/cocosdenshion
|
|
|
|
../../audio/include
|
|
|
|
)
|
|
|
|
|
|
|
|
add_library(luacocosdenshion STATIC
|
|
|
|
${LIBLUACOCOSDENSHION_SRC}
|
|
|
|
)
|
|
|
|
|
|
|
|
set_target_properties(luacocosdenshion
|
|
|
|
PROPERTIES
|
|
|
|
ARCHIVE_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/lib"
|
|
|
|
LIBRARY_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/lib"
|
|
|
|
)
|
|
|
|
|
|
|
|
#luanetwork
|
|
|
|
set(LIBLUANETWORK_SRC
|
|
|
|
manual/network/lua_cocos2dx_network_manual.cpp
|
|
|
|
manual/network/lua_xml_http_request.cpp
|
|
|
|
)
|
|
|
|
|
|
|
|
include_directories(
|
|
|
|
manual/network
|
|
|
|
../../network
|
|
|
|
)
|
|
|
|
|
|
|
|
add_library(luanetwork STATIC
|
|
|
|
${LIBLUANETWORK_SRC}
|
|
|
|
)
|
|
|
|
|
|
|
|
set_target_properties(luanetwork
|
|
|
|
PROPERTIES
|
|
|
|
ARCHIVE_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/lib"
|
|
|
|
LIBRARY_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/lib"
|
|
|
|
)
|
|
|
|
|
|
|
|
#luacocosbuilder
|
|
|
|
set(LIBLUACOCOSBUILDER_SRC
|
|
|
|
auto/lua_cocos2dx_cocosbuilder_auto.cpp
|
|
|
|
manual/cocosbuilder/lua_cocos2dx_cocosbuilder_manual.cpp
|
|
|
|
manual/cocosbuilder/CCBProxy.cpp
|
|
|
|
)
|
|
|
|
|
|
|
|
include_directories(
|
|
|
|
auto
|
|
|
|
manual/cocosbuilder
|
|
|
|
../../editor-support/cocosbuilder
|
|
|
|
)
|
|
|
|
|
|
|
|
add_library(luacocosbuilder STATIC
|
|
|
|
${LIBLUACOCOSBUILDER_SRC}
|
|
|
|
)
|
|
|
|
|
|
|
|
set_target_properties(luacocosbuilder
|
|
|
|
PROPERTIES
|
|
|
|
ARCHIVE_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/lib"
|
|
|
|
LIBRARY_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/lib"
|
|
|
|
)
|
|
|
|
|
|
|
|
#luacocostudio
|
|
|
|
set(LIBLUACOCOSTUDIO_SRC
|
|
|
|
auto/lua_cocos2dx_studio_auto.cpp
|
|
|
|
manual/cocostudio/lua_cocos2dx_coco_studio_manual.cpp
|
|
|
|
)
|
|
|
|
|
|
|
|
include_directories(
|
|
|
|
auto
|
|
|
|
manual/cocostudio
|
|
|
|
../../editor-support/cocostudio
|
|
|
|
)
|
|
|
|
|
|
|
|
add_library(luacocostudio STATIC
|
|
|
|
${LIBLUACOCOSTUDIO_SRC}
|
|
|
|
)
|
|
|
|
|
|
|
|
set_target_properties(luacocostudio
|
2014-03-10 17:10:08 +08:00
|
|
|
PROPERTIES
|
|
|
|
ARCHIVE_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/lib"
|
|
|
|
LIBRARY_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/lib"
|
|
|
|
)
|
|
|
|
|
2014-08-06 00:15:44 +08:00
|
|
|
#luaspine
|
|
|
|
set(LIBLUASPINE_SRC
|
|
|
|
auto/lua_cocos2dx_spine_auto.cpp
|
|
|
|
manual/spine/LuaSkeletonAnimation.cpp
|
|
|
|
manual/spine/lua_cocos2dx_spine_manual.cpp
|
|
|
|
)
|
|
|
|
|
|
|
|
include_directories(
|
|
|
|
auto
|
|
|
|
manual/spine
|
|
|
|
../../editor-support/spine
|
|
|
|
)
|
|
|
|
|
|
|
|
add_library(luaspine STATIC
|
|
|
|
${LIBLUASPINE_SRC}
|
|
|
|
)
|
|
|
|
|
|
|
|
set_target_properties(luaspine
|
|
|
|
PROPERTIES
|
|
|
|
ARCHIVE_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/lib"
|
|
|
|
LIBRARY_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/lib"
|
|
|
|
)
|
|
|
|
|
|
|
|
#luaextension
|
|
|
|
set(LIBLUAEXTENSION_SRC
|
|
|
|
auto/lua_cocos2dx_extension_auto.cpp
|
|
|
|
manual/extension/lua_cocos2dx_extension_manual.cpp
|
|
|
|
)
|
|
|
|
|
|
|
|
include_directories(
|
|
|
|
auto
|
|
|
|
manual/extension
|
|
|
|
../../../extensions
|
|
|
|
)
|
|
|
|
|
|
|
|
add_library(luaextension STATIC
|
|
|
|
${LIBLUAEXTENSION_SRC}
|
|
|
|
)
|
|
|
|
|
|
|
|
set_target_properties(luaextension
|
|
|
|
PROPERTIES
|
|
|
|
ARCHIVE_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/lib"
|
|
|
|
LIBRARY_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/lib"
|
|
|
|
)
|
|
|
|
|
|
|
|
#luaui
|
|
|
|
set(LIBLUAUI_SRC
|
|
|
|
auto/lua_cocos2dx_ui_auto.cpp
|
|
|
|
manual/ui/lua_cocos2dx_ui_manual.cpp
|
|
|
|
)
|
|
|
|
|
|
|
|
include_directories(
|
|
|
|
auto
|
|
|
|
manual/ui
|
|
|
|
../../ui
|
|
|
|
)
|
|
|
|
|
|
|
|
add_library(luaui STATIC
|
|
|
|
${LIBLUAUI_SRC}
|
|
|
|
)
|
|
|
|
|
|
|
|
set_target_properties(luaui
|
|
|
|
PROPERTIES
|
|
|
|
ARCHIVE_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/lib"
|
|
|
|
LIBRARY_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/lib"
|
|
|
|
)
|