From: Francesco M. <f18...@ya...> - 2006-09-02 10:30:08
|
John Labenski ha scritto: > On 8/31/06, John Labenski <jla...@gm...> wrote: >>>> 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. > > Ok, so how do I use these from a wxCode component that wants to link > to a different component. > > I made another tag > > <define-tag name="wxlike-lib" rules="exe,lib,dll,module"> > <if cond="TARGETING_WIN32=='1'"> > <sys-lib>wx$(WX_PORT)$(WX_VERSION)$(WXLIBPOSTFIX)_$(value)</sys-lib> > </if> > <if cond="TARGETING_WIN32=='0'"> > <sys-lib>wx_$(WX_PORT_WITHVERSION)$(WXLIBPOSTFIX)_$(value)-$(WX_VERSION_MAJOR).$(WX_VERSION_MINOR)</sys-lib> > </if> > </define-tag> > > which I think is ok... You can see it and the results in wxthings and > wxplotctrl. Thanks! I didn't make such a tag up to now because wxCode components usually used the simple 'compname$(WXLIBPOSTFIX)' libname syntax and that didn't require a specific tag. Now that we added wxlike-[lib|dll]name such tag is definitely required, too. Thanks, Francesco |