[fpc-devel] resource support rework

Michael Van Canneyt michael at freepascal.org
Tue Aug 12 09:22:29 CEST 2008



On Tue, 12 Aug 2008, Giulio Bernardi wrote:

> Michael Van Canneyt ha scritto:
> > 
> > On Tue, 12 Aug 2008, Giulio Bernardi wrote:
> > 
> > > Paul Ishenin ha scritto:
> > > > Hello, FPC developers' list
> > > >
> > > > Since resource rework appeared in the trunk we are asking to merge that
> > > > into
> > > > fixes branch to let lazarus use it. You told many times that it was
> > > > imposible for fpc 2.2.2. But yesterday it has been released and what
> > > > about
> > > > next fpc version? Will you merge that nice staff into current fixes
> > > > branch
> > > > or it will never be merged? I suppose if it ever will be merged then
> > > > better
> > > > to merge it early to give enough time for good testing (though lazarus
> > > > works
> > > > fine with it).
> > > >
> > > I wanted to add support for dynamic libraries first. That is, the
> > > possibility
> > > to retrieve resources from shared objects, and not only from the main
> > > program.
> > > This currently works for Windows only (obviously, since Win32 API is
> > > managing
> > > that).
> > > The problem is that currently I'm a bit short of time :(
> > 
> > Giulio, 
> > I see no problem in merging what exists already, there should not be any
> > problem in merging the additional support later. After all, the case where
> > the resources are in dynamic libraries is rather rare. 
> 
> Well, I think there is some delphi code that e.g. use resource-only dlls to
> store things like localized forms and strings. Ok, there are .po files in
> lazarus, but the resource thing is meant to ease porting of delphi code too.

Obviously :-)

> > Personally, I would be in favour of having it in 2.2.4, it would ensure
> > that it is used.
> 
> The only "problem" is that the dynamic library resource support requires some
> change in the binary format, so I wanted to stabilize it before adding
> resource support to a stable release.

You have a point.

Paul, does the new resource scheme already work with lazarus ? 
If not, maybe you can develop/test it in Lazarus, and during that
time Giulio can look at the library support ?

Michael.



More information about the fpc-devel mailing list