Hi, John Labenski ha scritto: > Hi Francesco, > I think we need to make the apps makefiles use the USE_WXBINDXXX > conditions defined in modules/bakefiles/options.bkl so that if you run > the makefile in wxLua/build/msw your preferences pass through to the > apps makefile. right...
> 1) It looks like it might be best to put the contents of > modules/bakefile/options.bkl into build/bakefile/options.bkl so > everything is defined for all the makefiles. hmmm, currently apps/build/bakefiles/apps.bkl already includes the modules's list of options, so putting all options in a single file wouldn't solve the problem. In fact, the USE_WXBIND* options do not appear in the win32's apps makefiles because they aren't used anywhere by apps.bkl and thus Bakefile prunes them as unused. So this movement of options is not needed IMO and would also make the final option file less maintainable. > 2) We need to then tie the bakefile USE_WXBINDXXX conditions to the > compiler directive -DwxLUA_USEBINDING_WXXXX=0 which controls the > initialization of the bindings for the apps. By default > wxLUA_USEBINDING_WXXXX=1 so we don't need to turn it on, but we do > need to turn it off. See modules/wxbind/include/wxbinddefs.h > > #ifndef wxLUA_USEBINDING_WXADV > #define wxLUA_USEBINDING_WXADV 1 > #endif > > How can we most easily do this? > > Add this? > > <define-global-tag name="define-usewxbind-def"> > <set var="DEF_wxLUA_USEBINDING_WX$(value.upper())"> > <if cond="USE_WXBIND$(value.upper())=='0"> > wxLUA_USEBINDING_WX$(value.upper())=0 > </if> this is a good idea! > > How to make an <else>? and this is just a dummy > since <define> will make this "-DA=A", but how to make it > nicer? > <if cond="USE_WXBIND$(value.upper())=='1"> > A=A > </if> this piece is not needed however. Just leave the DEF_wxLUA_USEBINDING_WX* vars empty if =='1': <define-global-tag name="define-usewxbind-def"> <set var="DEF_wxLUA_USEBINDING_WX$(value.upper())"> <if cond="USE_WXBIND$(value.upper())=='0"> wxLUA_USEBINDING_WX$(value.upper())=0 </if> </set> </define-global-tag> it *should* work (untested)... > Then in "<template id="wxlua"...>" add these since we can't do conditions > here. > <define>DEF_wxLUA_USEBINDING_WXADV</define> > <define>DEF_wxLUA_USEBINDING_WXAUI</define> > > Does this make sense? a lot ;) Francesco ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ wxlua-users mailing list wxlua-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wxlua-users