[fpc-devel] Enabling use of {$R *.dfm} on Windows

Michael Van Canneyt michael at freepascal.org
Thu Jul 26 11:34:57 CEST 2007

On Wed, 25 Jul 2007, Sergei Gorelkin wrote:

> Michael Van Canneyt wrote:
> > Hi,
> > 
> > The name of the resource linker can now be set with -FR<x>. This binary
> > should transform a resource file file to a .o file.
> > 
> > You can also specify the name of the recource compiler with -FC. This binary
> > should transform a resource source file to a .o file.
> > (normally used for .rc files)
> >
> > Both options expect the name of a binary (will be searched in the PATH), and
> > the binary should handle the same options as windres does. 
> To make sure that I understand things right:
> - The new utility is supposed to be invoked as 'fpc -FR<name> <all other 
> options>';


> - The new utility has nothing to do with -FC switch;

Currently not.

> - 'windres' name is still hardcoded within the utility.

This is as you wish :-)

> I probably should support win64/gorc, too. What will be the proper way to do
> it: recognize gorc switches in the commandline, or compile a separate
> executable, or whatever else? Is gorc executable available for crosscompiling
> from win32?

I have no idea. I suppose it is up to you to detect whether you want to use
windres or gorc, and transform the arguments if you are going to call gorc.


More information about the fpc-devel mailing list