From: John L. <jla...@gm...> - 2005-06-20 04:00:24
|
On 6/19/05, Ray Gilbert <ray...@sc...> wrote: > I am working on binding generators again - I will look into it Great, genwxbind.lua looks incredibly powerful (and cleanly written), but I think I'm missing the big picture of what function calls what to do what. Could you put a few comments in it when you get a chance. Also, the enums don't respect the %if wxLUA_USE conditions, only the %wxchkver ones that appear on the same line as the enum. Thanks, John >=20 > Ray >=20 > -----Original Message----- > From: wxl...@li... > [mailto:wxl...@li...] On Behalf Of John > Labenski > Sent: Sunday, 19 June 2005 07:14 > To: wxl...@li... > Subject: [Wxlua-users] Updated with wxIDE's wrappers >=20 > Unfortunately they're busted, but hopefully only slightly. Everything > builds properly except for a hundred or so errors about undeclared > identifiers, but see #1 below. >=20 > 1) genwxbind doesn't handle %enums properly, it needs to write > enumType::enumName so it can handle enums in a class. Unfortunately I > cannot make any sense of genwxbind so I've left it with two "FIXME" > lines, one where the enumType is known and one where I want to use it. >=20 > 2) It doesn't seem to write out the %builtin functions, I can't figure > this out at all. >=20 > Ray could you take a look at this, I've only modified genwxbind ever so > slightly. >=20 > See wxLua/bindings/genwxbind.bat to see how to generate new bindings. >=20 > You can easily test them by using wxLua/apps/wxlua/src/wxLua_wx26.dsw > which will build everything. (I've not updated the makefiles) >=20 > I've decided to put the output of the wrappers into > wxLua/modules/wxbind/include and src this way the code necessary for > virtual functions can be built right with it, I've called those wxlprint > and wxlhtmlwin (used to be wxLuaPrinting, wxLuaHtmlWin). >=20 > I think the only viable option for personalized bindings to link to is > to have people's projects compile the wrapper cpp files into their own > lib using their own luasetup.h file. We should have a generic build file > to build all of them as is, this is what wxlua will use. I've added my > wxluabind_wx26.dsp file in modules/wxbind/src/ to do this already, but > eventually we can make bakefile do this. >=20 > I've not uploaded the wrapper *.cpp files yet since they don't work, are > huge, and can be easily generated, but if you run the code in > genwxbind.bat you'll get them. >=20 > I hope this makes sense, this is our last step and once apps/wxlua > compiles properly anyone is free to do as they please since I think > we've got the best of all the various wxLuas now. Just remember, test > the wxlua app against any change you make and fix it up if necessary. >=20 > Regards, > John Labenski >=20 > |