On Jan 17, 2008 5:24 PM, Ryan Pusztai <[EMAIL PROTECTED]> wrote:
> > > I'd like to see just one DSO containing all the bindings that you can
> > > just do 'require "wx"' from inside a standard Lua interpreter.  Just one
> > > file you can put along side. (Excluding the WxWidgets DSOs themselves,
> > > obviously: although I suppose the bindings could statically link to them
> > > too, although that's not an option for me as Ubuntu doesn't come with
> > > static versions, but that's outside your control.)
>
> I agree with this. I have build files for wx.dll/so linked against the
> monolithic wxWidgets dll/so (if it is available in wx-config for Linux) This
> would be so great. --

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 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


============

Doesn't work

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

Neither does this

    <module id="mod_luamodule" template="wxlua" cond="SHARED=='1' and
USE_LUAMODULE=='1' and MONOLITHIC_MODULE=='0'">


else (note that if the cond=MONOLITHID_MODULE worked
mod_luamodule_mono would be just "mod_luamodule" replacing the above.)

<!--    <if cond="MONOLITHIC_MODULE=='1'"> -->
    <module id="mod_luamodule_mono" template="wxlua" cond="SHARED=='1'
and USE_LUAMODULE=='1'">
        <wxlua-dirname>$(WXLUA_LIBDIR)</wxlua-dirname>

        <!-- $libdir/lua/5.1 looks to be the standard folder for lua
modules... -->
        <install-to>$(LIBDIR)/lua/5.1</install-to>

        <include>$(WXLUA_BASEDIR)/modules/wxbind/setup</include>

        <headers>$(LUAMODULE_HDR)</headers>
        <define>WXMAKINGDLL_LUAMODULE</define>

        <sources>
            $(LUAMODULE_SRC)
            $(WXBINDADV_SRC)
            $(WXBINDAUI_SRC)
            $(WXBINDBASE_SRC)
            $(WXBINDCORE_SRC)
            $(WXBINDGL_SRC)
            $(WXBINDHTML_SRC)
            $(WXBINDMEDIA_SRC)
            $(WXBINDNET_SRC)
            $(WXBINDRICHTEXT_SRC)
            $(WXBINDSTC_SRC)
            $(WXBINDXML_SRC)
            $(WXBINDXRC_SRC)
            $(WXLUASOCKET_SRC)
            $(WXLUADEBUG_SRC)
            $(WXLUA_SRC)
        </sources>

        <!-- It's important to keep the module name 'wx' to make
require("wx") work -->
        <dllname>wx_mono</dllname>

        <!-- we won't use <wxlua-allstdlibs> because it links to the
non-verbatim
             version of lua, while we need the verbatim one (lua5.1.so/.dll) -->

        <wxlua-lib>lua</wxlua-lib>

        <wx-alllibs-req-bywxlua/>
    </module>

==============

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
wxlua-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wxlua-users

Reply via email to