From: klaas.holwerda <kho...@xs...> - 2005-11-22 09:42:01
|
Hi John, John Labenski wrote: >I hope this makes it a little more clear why I want this to work seamlessly. > > Maybe you should add this somewhere in the docs dir, as HTML file. I think the process of generating wxLua should be documented a little, so we all know what going on. This would be a start. >**************************** > >In terms of copying the luasetup.h that was used to generate each >library, it's probably not necessary since it's part of your project >and you can get at it yourself. > > I understand you have it in your/my project. And very likely for wxArt2D this would result in a seperate library. So leafs the directories to output object and library files etc. of the specific (on purpose limited) bindings. >********************************** >The solution: (or the only way I see it working) > >1) In modules/wxbind/include/wxbind.h we have #include "luasetup.h" >with *no* path before it. > > oke >2) We put a complete version of luasetup.h in >modules/wxbind/src/luasetup.h so it'll be included using the default >search path of ./ that all compilers support. > > > Hope so. >3) In the makefile for wxluabind we have >WXLUASETUP_DIR = ./ > > Oke, that should work :-) >4) In the makefile for wxluabind we have >WXBIND_TARGET_LIBDIR = $(WXPREFIX)/lib (or whereever) >so that again, in your own project files you can do >WXBIND_TARGET_LIBDIR = /some/path/to/somewhere/else > >Now you can have two different libs for two different luasetup.h at >the same time. > > Right, i think we need the object files to be generated there too. >HOWEVER! This cannot be made to work for MSVS dsp files, can it? > > Argh. But i think it can, the dsp files can use variables, i seen them ( like WXWIN). >>;) >> >> > >As you probably saw, I ased on wx-users, but I don't think it's really possible. > > I am not sure. If IDE (some) do understand $WXWIN, i think there is a good change. The wxArt2D project files generated by bakefile do have them. Klaas |