[fpc-pascal] Why does fpc copies *.lfm files to unit output directory

Graeme Geldenhuys mailinglists at geldenhuys.co.uk
Tue May 12 13:40:15 CEST 2015


On 2015-05-12 12:20, Jonas Maebe wrote:
> I think the reason is that the unit output directory is supposed to  
> contain everything you need to use that unit in a program.

Interestingly, when compiling MSEide, there are no *.mfm files
(equivalent to *.lfm from Lazarus) in the unit output directory.

Also, if *.res files are in the source directory, and used via {$R ..},
the *.res files don't seem to be copied to the unit output directory.
The exception is if there is no *.res, only *.rc - then a compiler .rc
file will end up in the unit output directory. The latter I understand.

So it seems *.lfm is copied, but *.res and *.mfm isn't. Yet they are all
used via the {$R..} usage in .pas files.

Regards,
  - Graeme -

-- 
fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal
http://fpgui.sourceforge.net/



More information about the fpc-pascal mailing list