Hi,
    I see in your other message you already solved this but just FYI:

John Labenski ha scritto:
> Francesco, the only thing I can think of doing is adding another
> target like below in modules/build/bakefiles/modules.bkl where we
> compile all the sources together.
I agree

> I added the option MONOLITHIC_MODULE the same way that USE_LUAMODULE
> was added but if I try to use cond"MONOLITHIC_MODULE='1'" in any form
> I always get an error. I don't understand why USE_LUAMODULE works, but
> MONOLITHIC_MODULE used in the exact same way doesn't.
> 
> /home/john/cvs/wxLua/a/wxLua/modules/build/bakefiles/modules.bkl:301:
> error: 'MONOLITHIC_MODULE=='0'': only weak condition allowed in this
> context
> [bakefile_gen] error: bakefile exited with error
this means... well... that you're using a strong condition (a condition 
which depends from an OPTION) in a place where you can't:

> Doesn't work
> 
> <!--    <if cond="MONOLITHIC_MODULE=='0'"> -->
>     <module id="mod_luamodule" template="wxlua" cond="SHARED=='1' and
> USE_LUAMODULE=='1'">
> the original code...

the <if> above cannot contain strong condition as it's a child directly 
of <makefile> node. Such kind of <if> nodes only allow weak conditions 
(e.g. <if cond="FORMAT=='autoconf'">, where FORMAT is NOT an OPTION).

the only type of <if> which can contain strong conditions are those 
inside <set> nodes AFAIK.

> Neither does this
> 
>     <module id="mod_luamodule" template="wxlua" cond="SHARED=='1' and
> USE_LUAMODULE=='1' and MONOLITHIC_MODULE=='0'">
this is strange and it should indeed work (cond attribute of target 
nodes allow strong conditions)... and infact I see in your later mail 
and in the actual version of modules.bkl this is the way you made it work ;)

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

Reply via email to