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.

> >   <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
[email protected]
https://lists.sourceforge.net/lists/listinfo/wxlua-users

Reply via email to