[fpc-pascal] Placing binary data (resources) in object files?

Anthony Walter sysrpl at gmail.com
Mon Jun 3 20:01:45 CEST 2013


I think I'll use Rainer's example:

{$ir file.dat mydata}

I just hope the final exe won't get bloated if resource are included in
this manner and never used and also that it does slow down compilation
every time unless I add to new resources or change code in the unit
containing the resource.

What I basically have is some large jpgs, test scripts, compressed sound
files and fonts, and I want them built into my library but discarded if no
code references them. That is, if an app doesn't use a skybox (there are no
references to the skybox class), then the default skybox jpeg resource is
not linked into the exe.

http://www.mapcore.org/topic/2829-second-release-5-skies/
1024*1024*6 pixel jpgs
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20130603/dfaefcbc/attachment.html>


More information about the fpc-pascal mailing list