1
0

Merge pull request #1089 from mc-server/tolua-auto

automaticlly build tolua and generate bindings as part of build.
This commit is contained in:
Mattes D 2014-06-13 16:32:34 +02:00
commit 90e3e2b4e6
2 changed files with 85 additions and 84 deletions

Binary file not shown.

View File

@ -8,13 +8,6 @@ include_directories (SYSTEM "${PROJECT_SOURCE_DIR}/../lib/polarssl/include")
set(FOLDERS OSSupport HTTPServer Items Blocks Protocol Generating PolarSSL++)
set(FOLDERS ${FOLDERS} WorldStorage Mobs Entities Simulator UI BlockEntities Generating/Prefabs)
if (NOT MSVC)
# Bindings need to reference other folders, so they are done here instead
# lib dependencies are not included
set(BINDING_DEPENDECIES
tolua
${CMAKE_CURRENT_SOURCE_DIR}/Bindings/virtual_method_hooks.lua
@ -100,6 +93,14 @@ if (NOT MSVC)
# add any new generation dependencies here
DEPENDS ${BINDING_DEPENDECIES}
)
if (NOT MSVC)
# Bindings need to reference other folders, so they are done here instead
# lib dependencies are not included
#add cpp files here
add_library(Bindings
Bindings/Bindings