01-19-2014, 11:48 PM
GenerateBindings.cmd? Where did you get that from, there isn't such a file in the repo anymore.
You don't need to generate the bindings, CMake will do that for you (the first time, at least); you can then update the bindings by executing the $/src/Bindings/AllToLua.bat script manually. I personally have added a command to VS's External tools menu (Tools -> External Tools...), like this:
This allows me to update bindings for any MCServer solution I have open (I keep a few repositories checked out in parallel) simply by pressing Alt+T, then U
You don't need to generate the bindings, CMake will do that for you (the first time, at least); you can then update the bindings by executing the $/src/Bindings/AllToLua.bat script manually. I personally have added a command to VS's External tools menu (Tools -> External Tools...), like this:
Code:
Title: &Update bindings
Command: <full-path-to-mc-server>\src\Bindings\tolua++.exe
Arguments: -L virtual_method_hooks.lua -o Bindings.cpp -H Bindings.h AllToLua.pkg
Initial directory: $(SolutionDir)\src\Bindings\