On 8/30/06, John Labenski <[EMAIL PROTECTED]> wrote: > > Thanks! I've checked it and found no errors except for the use of -- > > string as separator (which is not allowed within an XML file); I > > replaced them with ~~
Oops, I just got bakefile working in linux so I can test things now. I dunno what the problem I had with it was before, just got a clean copy and hacked away... > > > Secondly, I would really like to make it so that the library built for > > > a component be given a name such as > > > $(WXBASENAME)_mycomponent_name-$(WXRELEASE) to make it easier to link > > > to, especially if you want to compile more than one version of them. > > > We could use the same semantics as wxWidgets does where for example > > > $(WXBASENAME) == 'wx-config --basename' == wx_gtk2ud for gtk, unicode, > > > debug > > > and then you would use <wx-lib>mycomp_name</wx-lib> in the bakefiles to > > > get it. > > Good point. I had noticed that this would be very useful lot of times > > but never found time. > > > > > > > > I have two problems with this, > > > 1) where or how do you adjust the name of the created lib > > Ok, I've added to wxhacks the wxlike-libname and wxlike-dllname tags so > > that now you can write: > > > > <lib id="keybinder_lib" template="complib" cond="WX_SHARED=='0'"> > > <wxlike-libname>keybinder</wxlike-libname> > > </lib> > > > > 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> 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) > > > 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> 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. > > In fact, I'm now trying to transfer some wxLua bakefile/m4 code to > > wxCode bakefiles/m4 but since with wxLua we're using a patched bakefile > > and wxCode not, the things are not easy and may require some time. > > > > If only my patches were applied to bakefile... (just daydreaming) :) Thanks, John Labenski ------------------------------------------------------------------------- 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