On Jan 16, 2008 2:20 PM, John Labenski <[EMAIL PROTECTED]> wrote: > On Jan 16, 2008 2:06 PM, Francesco Montorsi <[EMAIL PROTECTED]> wrote: > > > 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. > > That explains it.
Humm, I think bakefile is pruning the code for the var since "-DDEF_wxLUA_USEBINDING_WXXXX" appears as a compiler directive, but I cannot make it generate the variable DEF_wxLUA_USEBINDING_WX itself. http://wxlua.cvs.sourceforge.net/wxlua/wxLua/apps/build/msw/makefile.vc?revision=1.77&view=markup I've instead gone for the much simpler <define>wxLUA_USEBINDING_WXADV=$(USE_WXBINDADV)</define> I've also added a new <template id="wxlua_with_bindings" tempate="wxlua"> that <template id="wxluaapp" template="wxlua_with_bindings"> is derived from since we don't need the above conditions for the modules. http://wxlua.cvs.sourceforge.net/wxlua/wxLua/build/bakefiles/wxluabase.bkl?r1=1.47&r2=1.48 Regards, John > > > <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> > > > > 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 ;) > > But if DEF_wxLUA_USEBINDING_WXADV is empty won't we get stray "-D" > compiler directives? That's why I added the "A=A" hack because the > value of DEF_wxLUA_USEBINDING_WXADV is determined in the makefile and > so bakefile cannot trim out empty <define>s leaving > "-D$DEF_wxLUA_USEBINDING_WXADV" which == "-D". > > In any case, I will try the above and see what happens. > > Thanks, > John > ------------------------------------------------------------------------- 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