Poll: Which option would be best for autogenerating code?
You do not have permission to vote in this poll.
A perl script commited to the repositry
0%
0 0%
A python script commited to the repositry
100.00%
3 100.00%
A one off script in either language not in the repository
0%
0 0%
a C++ program that could be commited to the repository.
0%
0 0%
other
0%
0 0%
Total 3 vote(s) 100%
* You voted for this item. [Show Results]

python or perl as additional dependecy for generating code.
#6
A silly idea: could we bend tolua++ to actually execute a Lua script for us? Then we won't need to compile Lua at all - the tolua++ executable is already in the repository for Windows to use.

Because invoking msbuild means you need to execute it in a shell that has been VisualStudio-lized (typically from the start menu -> visual studio -> visual studio command prompt, then chdir to your folder, then execute script), it is rather difficult for newcomers.

Yup, it should be possible - tolua++ has the -L option that runs any Lua file before doing the tolua run, so it could be done.

Unfortunately it only supports one such file and we already use one for generating the bindings. So the code will have to be appended to that file, rather than in a separate file - or use a "dofile()" function.
Reply
Thanks given by:


Messages In This Thread
RE: python or perl as additional dependecy for generating code. - by xoft - 01-12-2014, 03:03 AM



Users browsing this thread: 3 Guest(s)