1
0

Fixed MSVC bindings generation.

This commit is contained in:
madmaxoft 2014-07-19 13:22:16 +02:00
parent 0960e6ae8f
commit 9e7958e7fb
2 changed files with 4 additions and 4 deletions

View File

@ -112,7 +112,7 @@ set(BINDING_DEPENDECIES
../World.h ../World.h
) )
if (NOT WIN32) if (NOT MSVC)
ADD_CUSTOM_COMMAND( ADD_CUSTOM_COMMAND(
# add any new generated bindings here # add any new generated bindings here
OUTPUT ${BINDING_OUTPUTS} OUTPUT ${BINDING_OUTPUTS}

View File

@ -230,7 +230,7 @@ endif()
set(EXECUTABLE MCServer) set(EXECUTABLE MCServer)
if (WIN32) if (MSVC)
get_directory_property(BINDING_OUTPUTS DIRECTORY "Bindings" DEFINITION BINDING_OUTPUTS) get_directory_property(BINDING_OUTPUTS DIRECTORY "Bindings" DEFINITION BINDING_OUTPUTS)
get_directory_property(BINDING_DEPENDENCIES DIRECTORY "Bindings" DEFINITION BINDING_DEPENDENCIES) get_directory_property(BINDING_DEPENDENCIES DIRECTORY "Bindings" DEFINITION BINDING_DEPENDENCIES)
@ -241,8 +241,8 @@ if (WIN32)
COMMAND ${CMAKE_COMMAND} -E copy_if_different ${CMAKE_SOURCE_DIR}/MCServer/lua51.dll ./lua51.dll COMMAND ${CMAKE_COMMAND} -E copy_if_different ${CMAKE_SOURCE_DIR}/MCServer/lua51.dll ./lua51.dll
# Regenerate bindings: # Regenerate bindings:
COMMAND tolua -L Bindings/virtual_method_hooks.lua -o Bindings/Bindings.cpp -H Bindings/Bindings.h Bindings/AllToLua.pkg COMMAND tolua -L virtual_method_hooks.lua -o Bindings.cpp -H Bindings.h AllToLua.pkg
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/Bindings/
# add any new generation dependencies here # add any new generation dependencies here
DEPENDS ${BINDING_DEPENDECIES} DEPENDS ${BINDING_DEPENDECIES}