Hi John,
    sorry for the delay - I'm going to revise wxCode bakefiles right now.


John Labenski ha scritto:
>>> if you want your lib to be named to the "wx" manner.
> 
> Great! I added these lines to wxhacks.bkl to also get the unicode and
> debug syntax too.
> 
>   <set var="WXLIBPOSTFIX" cond="WX_UNICODE=='1'">$(WXLIBPOSTFIX)u</set>
>   <set var="WXLIBPOSTFIX" cond="WX_DEBUG=='1'">$(WXLIBPOSTFIX)d</set>
thanks ! I added these to the wxhacks.bkl of wxLua but not to wxCode's 
one. To keep the two files as similar as possible I've just replaced 
these two lines with the relative block taken from wxLua's bakefile.


> Officially they use somthing like this, for richtext, which is of a
> similar nature as a wxCode component.
>           
> $(LIBDIRNAME)/$(DLLPREFIX)$(WXDLLNAMEPREFIXGUI)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_richtext$(WXCOMPILER)$(VENDORTAG)$(WXDLLVERSIONTAG)$(dll___targetsuf3)
yes, WXLIBPOSTFIX is very important in order to get libraries correctly 
named - I would have noticed it before if only I had time to work on 
wxCode components recently.

>>>> 2) would <wx-lib>mycomp_name</wx-lib> really work or would this line
>>>> in build/autoconf/wxpresets.m4 not work?
>>>>
>>>> WX_LIBS="$($WX_CONFIG_PATH $wx_config_args $WXCFG_FLAGS
>>>> $1,$WX_ADDITIONAL_LIBS --libs)"
>>> need to test it as autoconf format will require some work.
> 
> Grrrr!!! The wxWidgets bakefile has a check so if you do
> <wx-lib>sheet</wx-lib> to use the
> <wxlike-libname>sheet</wxlike-libname> sheet lib you get this error
> from bakefile_gen.
> 
> -----------------------------------------------------------------------
> Unknown wxWidgets library given in the wx-lib tag
> -----------------------------------------------------------------------
> 
> /home/john/lib/bakefile-0.2.0/share/bakefile/presets/wx_win32.bkl:299:
> error: an error occured during processing
>     when processing target at
> /home/john/cvs/wxCode/wxCode/components/wxsheet/build/wxsheet.bkl:71
> 
> This is because they have this in wx.bkl, which doesn't even have richedit!
> 
>     <set var="LIB_LIST">base core net xml odbc xrc html adv media gl
> dbgrid qa</set>
>     <set var="CONTRIBLIB_LIST">animate applet deprecated fl foldbar
> gizmos mmedia netutils ogl plot stc svg</set>
>     <set var="ALLLIB_LIST">$(LIB_LIST) $(CONTRIBLIB_LIST)</set>
> 
> and this in wx_win32.bkl and wx_unix.bkl
> 
>         <if cond="value not in ALLLIB_LIST.split()">
>             <error>Unknown wxWidgets library given in the wx-lib tag</error>
>         </if>
ehm, I know of those checks as I submitted them in wxpresets :|
Sure it's missing richedit. It was added after I submitted my patch to 
wxpresets.
BTW, relatively also to my SoC project, I'm going to try to push wx 
developers to embed some changes to wxpresets, basically all stuff in 
the "wxhacks.bkl" files and maybe, wxpresets.m4, directly in wx presets.
That would be great as currently I have to try to keep synch all those 
files in all wx-based projects I work on.


> I have to give up now, since I cannot get the <wx-lib>adv</wx-lib> to
> get added to the Makefile.in and GNUmakefile. Same for html or any
> other wxlib.
I'll reply to this in your other mail.

Francesco


-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
wxCode-users mailing list
wxCode-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wxcode-users

Reply via email to