[fpc-pascal] Including binary data making easy
Michael Van Canneyt
michael at freepascal.org
Mon Mar 23 18:53:57 CET 2009
On Mon, 23 Mar 2009, Rainer Stratmann wrote:
> Am Montag, 23. März 2009 18:18 schrieb Michael Van Canneyt:
> > On Mon, 23 Mar 2009, Marco van de Voort wrote:
> > > In our previous episode, John Coppens said:
> > > > > I have been using bin2obj for two years now. It works perfectly for
> > > > > me, even though it's a (occasional) two step process. My application
> > > > > changes more than the resource I include.
> > > >
> > > > ... and you can add the conversion into the Makefile, so the conversion
> > > > happens automatically when the data changes.
> > >
> > > Which makefile? For own projects I typically don't use any.
> > In Lazarus, you can create a pre-compile command that does it for you, so
> > you'll never forget.
> And if you share the source-files with a friend and he compiles it on his
The command is in the project's compiler options, and if the binary data file
is also on his PC, it will work out of the box.
More information about the fpc-pascal