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.
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.
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>
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>
</set>
</define-global-tag>
<define-usewxbind-def>aui</define-usewxbind-def>
<define-usewxbind-def>adv</define-usewxbind-def>
...
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?
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