On 2/2/06, Francesco Montorsi <[EMAIL PROTECTED]> wrote: > > I wonder first why wxluasetup.h is located in a source directory while > > it is a header file?? > Probably it was put in src/ thinking to the fact that it should be > 'overrideable' by an option like WXLUASETUP_DIR. > > However I suggest to move wxluasetup.h in a directory ad-hoc like > "wxLua/modules/setup" so that it would still be possible to include it > using lines like: > > #include "wxluasetup.h" > > (since the wxLua/modules path is automatically added to include search > paths). > > I'm proposing this because AFAIK every compiler is free to decide its > own rules about include directories priority. That is, if we keep > 'wxluasetup.h' in modules/wxbind/src, even if we give to the compiler > the -I/userpath/to/custom/wxluasetup switch, we cannot be 100% sure that > the compiler will use the /userpath/to/custom/wxluasetup/wxluasetup.h > file instead of the modules/wxbind/src/wxluasetup.h.... > > If you agree, I'll move wxluasetup.h in wxLua/modules/setup and commit > bakefile changes required to get this option to work.
That sounds fine, I put wxluasetup.h in the src dir for the reason you stated. > > If all the new moduler binding features would work correctly, there is > > still a need for the above. It would be to create a subset of wxLua > > bindings to make the base binding library smaller for a specific > > application. If one can Unregister things runtime, the need would be less. > > > > All in all i think those variables would be good to have. > Ok, so, in conclusion, my description of the wanted behaviour for those > options is right, isn't it ? I think it's good. I think it's better to compile your app and link against a stripped down wxluabinding lib rather than try to remove stuff at runtime. This way the linker can remove wxWidgets classes that aren't used as well. If you take wxLua with everything then you have to drag all of wxWidgets in too since it'll be referenced in the binding code. Regards, John Labenski ------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://sel.as-us.falkag.net/sel?cmd=lnk&kid3432&bid#0486&dat1642 _______________________________________________ Wxlua-users mailing list Wxlua-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wxlua-users